diff --git a/jest.config.js b/jest.config.js index 3f0d788..6bbd27e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -123,7 +123,7 @@ module.exports = { // setupFiles: [], // A list of paths to modules that run some code to configure or set up the testing framework before each test - // setupFilesAfterEnv: [], + setupFilesAfterEnv: ['./src/config/jest.ts'], // A list of paths to snapshot serializer modules Jest should use for snapshot testing // snapshotSerializers: [], diff --git a/src/config/jest.ts b/src/config/jest.ts new file mode 100644 index 0000000..d2c9bc6 --- /dev/null +++ b/src/config/jest.ts @@ -0,0 +1 @@ +import 'reflect-metadata';