mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
refactor: move test utils to package (#3206)
This commit is contained in:
@@ -2,10 +2,14 @@ import { expect, test } from 'vitest';
|
||||
|
||||
test('compare config', async () => {
|
||||
const { default: nextConfigMock } = await import(
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
'../../scripts/vitest/next-config-mock'
|
||||
);
|
||||
const mockConfig = nextConfigMock().publicRuntimeConfig;
|
||||
const { default: nextConfig } = await import(
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
'../../apps/web/next.config.mjs'
|
||||
);
|
||||
const config = nextConfig.publicRuntimeConfig;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["**.spec.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user