diff --git a/jest.config.js b/jest.config.js index 3c080fa6d..63c2e1b35 100644 --- a/jest.config.js +++ b/jest.config.js @@ -40,6 +40,7 @@ module.exports = { ], testEnvironment: 'node', globalSetup: '/test/util/SetupTests.ts', + globalTeardown: '/test/util/TeardownTests.ts', setupFilesAfterEnv: [ 'jest-rdf' ], collectCoverage: false, // See https://github.com/matthieubosquet/ts-dpop/issues/13 diff --git a/package.json b/package.json index f0c6a2829..4f8a7cbe0 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,6 @@ "rdf", "ldp" ], - "contributors": [ - "Joachim Van Herwegen ", - "Thomas Dupont ", - "Wannes Kerckhove ", - "Jasper Vaneessen ", - "Ruben Taelman (https://www.rubensworks.net/)", - "Ruben Verborgh (https://ruben.verborgh.org/)" - ], "license": "MIT", "engines": { "node": ">=18.0" diff --git a/test/integration/Quota.test.ts b/test/integration/Quota.test.ts index 6f575e9d5..518c493c5 100644 --- a/test/integration/Quota.test.ts +++ b/test/integration/Quota.test.ts @@ -93,7 +93,7 @@ describe('A quota server', (): void => { }); afterAll(async(): Promise => { - 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 => { - await removeFolder(rootFilePath); + // Not cleaning up `rootFilePath` as this intermittently causes issues during CI await app.stop(); }); diff --git a/test/util/TeardownTests.ts b/test/util/TeardownTests.ts new file mode 100644 index 000000000..69d376b79 --- /dev/null +++ b/test/util/TeardownTests.ts @@ -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 { + // Clean up the root test folder + await removeFolder(getTestFolder('')); +}