Skip to content

Commit a67d101

Browse files
committed
test: skip in e2e as well
1 parent e78f851 commit a67d101

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/e2e/simple-app.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, type Locator, type Response } from '@playwright/test'
2-
import { nextVersionSatisfies } from '../utils/next-version-helpers.mjs'
2+
import { hasDefaultTurbopackBuilds, nextVersionSatisfies } from '../utils/next-version-helpers.mjs'
33
import { test } from '../utils/playwright-helpers.js'
44

55
const expectImageWasLoaded = async (locator: Locator) => {
@@ -273,6 +273,8 @@ test('Compressed rewrites are readable', async ({ simple }) => {
273273
})
274274

275275
test('can require CJS module that is not bundled', async ({ simple }) => {
276+
// setup for this test only works with webpack builds due to usage of ` __non_webpack_require__` to avoid bundling a file
277+
test.skip(hasDefaultTurbopackBuilds(), 'Setup for this test only works with webpack builds')
276278
const resp = await fetch(`${simple.url}/api/cjs-file-with-js-extension`)
277279

278280
expect(resp.status).toBe(200)

0 commit comments

Comments
 (0)