0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-25 13:19:30 +01:00
hono/jest.config.js
Yusuke Wada 29f67c5b72
feat: Mustache Middleware (#72)
* [WIP] feat: Mustache Middleware

Dirty code.
A Big problem is tests for Workers Site KV does not work well...

* feat: mustache middleware

* Add readme
2022-01-29 09:09:37 +09:00

25 lines
612 B
JavaScript

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