-
-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathbrowser.test.ts
More file actions
23 lines (19 loc) · 718 Bytes
/
browser.test.ts
File metadata and controls
23 lines (19 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { expect, test } from '@playwright/test'
import fs from 'node:fs'
import path from 'node:path'
import { useFixture } from './fixture'
import { defineStarterTest } from './starter'
// Webkit fails by
// > TypeError: ReadableByteStreamController is not implemented
test.skip(({ browserName }) => browserName === 'webkit')
test.describe('dev-browser', () => {
const f = useFixture({ root: 'examples/browser', mode: 'dev' })
defineStarterTest(f, 'no-ssr')
})
test.describe('build-browser', () => {
const f = useFixture({ root: 'examples/browser', mode: 'build' })
defineStarterTest(f, 'no-ssr')
test('no ssr build', () => {
expect(fs.existsSync(path.join(f.root, 'dist/ssr'))).toBe(false)
})
})