0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-21 18:18:57 +01:00
hono/jest.config.js
Yusuke Wada ca52dd898e
fix(build): fix ESM support in Node.js / use esbuild (#631)
* fix(build): fix ESM support in Node.js / use `esbuild`

* add tsx

* denoify ignore
2022-10-28 08:46:02 +09:00

25 lines
611 B
JavaScript

export default {
testMatch: ['**/test/**/*.+(ts|tsx|js)', '**/src/**/(*.)+(spec|test).+(ts|tsx|js)'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
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'],
*/
},
}