0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 11:17:33 +01:00
hono/jest.config.js
Yusuke Wada ac713c0659
refactor: refine directory structure (#156)
* refactor: refine importing mechanism

* refactor: move `CODE_OF_CONDUCT.md`
2022-04-20 14:06:04 +09:00

29 lines
710 B
JavaScript

module.exports = {
testMatch: ['**/test/**/*.+(ts|tsx|js)', '**/src/**/(*.)+(spec|test).+(ts|tsx|js)'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
modulePaths: ['<rootDir>/src'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testPathIgnorePatterns: ['./examples'],
testEnvironment: 'miniflare',
testEnvironmentOptions: {
/*
bindings: {
__STATIC_CONTENT: {
get: (key) => {
const table = { 'index.abcdef.index': 'This is index' }
return table[key]
},
},
__STATIC_CONTENT_MANIFEST: JSON.stringify({
'index.index': 'index.abcdef.index',
}),
},
kvNamespaces: ['TEST_NAMESPACE'],
*/
},
}