mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
Merge branch 'main' into versions/next-major
This commit is contained in:
commit
b0d7342b39
@ -40,6 +40,7 @@ module.exports = {
|
||||
],
|
||||
testEnvironment: 'node',
|
||||
globalSetup: '<rootDir>/test/util/SetupTests.ts',
|
||||
globalTeardown: '<rootDir>/test/util/TeardownTests.ts',
|
||||
setupFilesAfterEnv: [ 'jest-rdf' ],
|
||||
collectCoverage: false,
|
||||
// See https://github.com/matthieubosquet/ts-dpop/issues/13
|
||||
|
@ -8,14 +8,6 @@
|
||||
"rdf",
|
||||
"ldp"
|
||||
],
|
||||
"contributors": [
|
||||
"Joachim Van Herwegen <joachim.vanherwegen@ugent.be>",
|
||||
"Thomas Dupont <thomas.dupont@ugent.be>",
|
||||
"Wannes Kerckhove <wannes.kerckhove@ugent.be>",
|
||||
"Jasper Vaneessen <jasper.vaneessen@ugent.be>",
|
||||
"Ruben Taelman <ruben.taelman@ugent.be> (https://www.rubensworks.net/)",
|
||||
"Ruben Verborgh <ruben.verborgh@ugent.be> (https://ruben.verborgh.org/)"
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.0"
|
||||
|
@ -93,7 +93,7 @@ describe('A quota server', (): void => {
|
||||
});
|
||||
|
||||
afterAll(async(): Promise<void> => {
|
||||
await removeFolder(rootFilePath);
|
||||
// Not cleaning up `rootFilePath` as this intermittently causes issues during CI
|
||||
await app.stop();
|
||||
});
|
||||
|
||||
@ -178,7 +178,7 @@ describe('A quota server', (): void => {
|
||||
});
|
||||
|
||||
afterAll(async(): Promise<void> => {
|
||||
await removeFolder(rootFilePath);
|
||||
// Not cleaning up `rootFilePath` as this intermittently causes issues during CI
|
||||
await app.stop();
|
||||
});
|
||||
|
||||
|
7
test/util/TeardownTests.ts
Normal file
7
test/util/TeardownTests.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { getTestFolder, removeFolder } from '../integration/Config';
|
||||
|
||||
// Jest global teardown requires a single function to be exported
|
||||
export default async function(): Promise<void> {
|
||||
// Clean up the root test folder
|
||||
await removeFolder(getTestFolder(''));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user