honojs-middleware/jest.config.js

22 lines
530 B
JavaScript
Raw Normal View History

2022-07-23 22:56:20 +08:00
module.exports = {
2022-07-28 13:58:54 +08:00
testMatch: [
"**/test/**/*.+(ts|tsx|js)",
"**/src/**/(*.)+(spec|test).+(ts|tsx|js)",
],
2022-07-23 22:56:20 +08:00
transform: {
2022-07-28 13:58:54 +08:00
"^.+\\.(ts|tsx)$": "ts-jest",
2022-07-23 22:56:20 +08:00
},
2022-07-28 13:58:54 +08:00
testEnvironment: "miniflare",
testEnvironmentOptions: {
vars: {
FIREBASE_AUTH_EMULATOR_HOST: "127.0.0.1:9099",
PUBLIC_JWK_CACHE_KEY: "testing-cache-key",
},
bindings: {
FIREBASE_AUTH_EMULATOR_HOST: "127.0.0.1:9099",
PUBLIC_JWK_CACHE_KEY: "testing-cache-key",
},
kvNamespaces: ["PUBLIC_JWK_CACHE_KV"],
},
};