mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 12:05:39 -05:00
* test: allow mocking of env vars Since utils/env is a module, we can mock it to control env vars in tests. However, it's not compatible with building the server in setupFilesAfterEnv, so, instead, we can use a utility function to keep things DRY. * fix: update type of fastifyTestInstance * chore: add comment about sts preload * chore: rename header plugin * test: add get util + provide origin on request * feat: add cors headers * chore: add TODO
12 lines
182 B
TypeScript
12 lines
182 B
TypeScript
import type { Config } from 'jest';
|
|
|
|
const config: Config = {
|
|
verbose: true,
|
|
testRegex: '\\.test\\.ts$',
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest'
|
|
}
|
|
};
|
|
|
|
export default config;
|