We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d878e2a commit 806abdaCopy full SHA for 806abda
packages/plugin-rsc/e2e/starter.test.ts
@@ -1,6 +1,8 @@
1
import { expect, test } from '@playwright/test'
2
import { type Fixture, useFixture } from './fixture'
3
import { expectNoReload, testNoJs, waitForHydration } from './helper'
4
+import path from 'node:path'
5
+import fs from 'node:fs'
6
7
test.describe('dev-default', () => {
8
const f = useFixture({ root: 'examples/starter', mode: 'dev' })
@@ -30,6 +32,10 @@ test.describe('dev-no-ssr', () => {
30
32
test.describe('build-no-ssr', () => {
31
33
const f = useFixture({ root: 'examples/no-ssr', mode: 'build' })
34
defineTest(f, 'no-ssr')
35
+
36
+ test('no ssr build', () => {
37
+ expect(fs.existsSync(path.join(f.root, 'dist/ssr'))).toBe(false)
38
+ })
39
})
40
41
function defineTest(f: Fixture, variant?: 'no-ssr') {
0 commit comments