test: giving steroids to the test suite 💪 (#122)

* purely test suite on steroids

* verify stuff

* more fun verifies

* ok ok ok I'm done

* extend timeout and consolidate to constant for easier usage across tests

* PR feedback :)
Remove warnings by adding transform regex to `ts-jest` and `testMatch`.

* cleanup

* cleanup

* PR feedback & converting `export function` to `export const` in `util.ts`
This commit is contained in:
Mike Maietta
2025-02-18 23:58:52 -08:00
committed by GitHub
parent d76ca76072
commit 7c0ad6caa5
6 changed files with 745 additions and 129 deletions

View File

@@ -3,13 +3,14 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'.': [
'^.+\\.ts?$': [
'ts-jest',
{
tsconfig: 'tsconfig.jest.json'
}
]
tsconfig: 'tsconfig.jest.json',
},
],
},
testMatch: ['<rootDir>/test/**/*.spec.ts'],
globalSetup: './jest.setup.ts',
testTimeout: 10000,
};
};