feat: Jest Test Runner (#2170)

This commit is contained in:
justinr1234
2023-02-03 17:03:07 -06:00
committed by GitHub
parent 5a63f18faf
commit 5fe480ece4
229 changed files with 13497 additions and 17033 deletions

20
jest.config.base.js Normal file
View File

@@ -0,0 +1,20 @@
const { TextDecoder, TextEncoder } = require("util");
module.exports = {
roots: ["<rootDir>/src"],
transform: {
"^.+\\.ts$": "ts-jest",
},
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverage: true,
verbose: true,
testEnvironment: "node",
globals: {
TextDecoder: TextDecoder,
TextEncoder: TextEncoder,
error: console.error,
warn: console.warn,
info: console.info,
debug: console.debug,
},
};