Skip to content

Commit 7836721

Browse files
committed
Fix skipping test on webpack
1 parent c7a9eaa commit 7836721

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎eslint.config.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ export default defineConfig([
308308
'itCI',
309309
'itHeaded',
310310
'itTurbopackDev',
311+
'itOnlyTurbopack',
311312
],
312313
},
313314
],

‎test/production/turbopack-node-backend/turbopack-node-backend.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ describe.each([
66
] as const)(
77
'turbopack-node-backend (%s)',
88
(turbopackPluginRuntimeStrategy, expectSamePid) => {
9-
const { next, isTurbopack, skipped } = nextTestSetup({
9+
const { next, isTurbopack } = nextTestSetup({
1010
files: __dirname,
1111
env: {
1212
TEST_TURBOPACK_PLUGIN_RUNTIME_STRATEGY: turbopackPluginRuntimeStrategy,
1313
},
1414
})
1515

16-
if (skipped || !isTurbopack) {
17-
return
18-
}
16+
const itOnlyTurbopack = isTurbopack ? it : it.skip
1917

20-
it('should match expected loader pid behavior', async () => {
18+
itOnlyTurbopack('should match expected loader pid behavior', async () => {
2119
const response = await next.fetch('/api/pid')
2220
expect(response.status).toBe(200)
2321

0 commit comments

Comments
 (0)