test: add import protection test

This commit is contained in:
Daniel Roe 2024-11-19 13:56:33 -05:00
parent 644449409c
commit cf8142b734
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -24,6 +24,7 @@ const testsToTriggerOn = [
['some-nuxt-module', 'components/Component.vue', true], ['some-nuxt-module', 'components/Component.vue', true],
['/root/src/server/api/test.ts', 'components/Component.vue', true], ['/root/src/server/api/test.ts', 'components/Component.vue', true],
['src/server/api/test.ts', 'components/Component.vue', true], ['src/server/api/test.ts', 'components/Component.vue', true],
['node_modules/nitropack/node_modules/crossws/dist/adapters/bun.mjs', 'node_modules/nitropack/dist/presets/bun/runtime/bun.mjs', false],
] as const ] as const
describe('import protection', () => { describe('import protection', () => {