mirror of https://github.com/Squidex/squidex.git
Browse Source
* Update node. * Dummy update * Fix some tests. * Cleanup * Update test. * Source folder.pull/1288/head
committed by
GitHub
13 changed files with 143 additions and 571 deletions
File diff suppressed because it is too large
@ -0,0 +1,18 @@ |
|||
import { getTestBed, TestBed } from "@angular/core/testing"; |
|||
import { BrowserTestingModule, platformBrowserTesting } from "@angular/platform-browser/testing"; |
|||
import { afterEach } from "vitest"; |
|||
|
|||
afterEach(() => { |
|||
TestBed.resetTestingModule(); |
|||
}); |
|||
|
|||
// Only initialize test environment if it hasn't been initialized yet
|
|||
// This prevents errors when vitest runs tests in parallel (e.g., in CI)
|
|||
try { |
|||
getTestBed().initTestEnvironment( |
|||
BrowserTestingModule, |
|||
platformBrowserTesting(), |
|||
); |
|||
} catch { |
|||
// Test environment already initialized, ignore the error
|
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
import { defineConfig } from "vitest/config"; |
|||
|
|||
export default defineConfig({ |
|||
test: { |
|||
passWithNoTests: true, |
|||
}, |
|||
}); |
|||
Loading…
Reference in new issue