Skip to content

Commit

Permalink
test: load builtin library before each validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Sep 22, 2023
1 parent bbec9a0 commit 38593c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/language/validation/testValidation.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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);
});
Expand Down

0 comments on commit 38593c4

Please sign in to comment.