Skip to content

Commit 6010e3a

Browse files
committed
Only turbopack
1 parent b904e99 commit 6010e3a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import { nextTestSetup } from 'e2e-utils'
22

3-
describe('turbopack-loader-resource-query', () => {
4-
const { next } = nextTestSetup({
5-
files: __dirname,
6-
})
3+
;(process.env.TURBOPACK ? describe : describe.skip)(
4+
'turbopack-loader-resource-query',
5+
() => {
6+
const { next } = nextTestSetup({
7+
files: __dirname,
8+
})
79

8-
// Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
9-
it('should pass query to loader', async () => {
10-
await next.render$('/')
10+
// Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
11+
it('should pass query to loader', async () => {
12+
await next.render$('/')
1113

12-
expect(next.cliOutput).toContain('resource query: ?test=hi')
13-
})
14-
})
14+
expect(next.cliOutput).toContain('resource query: ?test=hi')
15+
})
16+
}
17+
)

0 commit comments

Comments
 (0)