diff --git a/tests/language/validation/testValidation.test.ts b/tests/language/validation/testValidation.test.ts index 5b19437d2..0b8175ed1 100644 --- a/tests/language/validation/testValidation.test.ts +++ b/tests/language/validation/testValidation.test.ts @@ -1,4 +1,4 @@ -import { afterEach, describe, it } from 'vitest'; +import { afterEach, beforeEach, describe, it } from 'vitest'; import { createSafeDsServices } from '../../../src/language/safe-ds-module.js'; import { URI } from 'vscode-uri'; import { NodeFileSystem } from 'langium/node'; @@ -11,6 +11,11 @@ import { locationToString } from '../../helpers/location.js'; const services = createSafeDsServices(NodeFileSystem).SafeDs; describe('validation', async () => { + beforeEach(async () => { + // Load the builtin library + await services.shared.workspace.WorkspaceManager.initializeWorkspace([]); + }); + afterEach(async () => { await clearDocuments(services); });