refactor
This commit is contained in:
parent
d0ea6e9eec
commit
2967f1a5af
31 changed files with 469 additions and 165 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
/**
|
||||
|
|
@ -7,6 +9,15 @@ import { defineConfig } from 'vitest/config'
|
|||
* errors about the `test` key.
|
||||
*/
|
||||
export default defineConfig({
|
||||
// The integration tests import the actual shipped SDK modules (sdk/src/*) to drive
|
||||
// the real custom elements. Those live one directory up, outside the web package
|
||||
// root, so Vite's default filesystem allow-list has to be widened to the repository
|
||||
// root for the cross-package import to resolve.
|
||||
server: {
|
||||
fs: {
|
||||
allow: [fileURLToPath(new URL('..', import.meta.url))],
|
||||
},
|
||||
},
|
||||
test: {
|
||||
// The admin interface is a browser application: components touch the DOM,
|
||||
// localStorage and matchMedia, so jsdom is required rather than merely useful.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue