2022-01-05 10:41:29 +01:00
|
|
|
module.exports = {
|
2022-01-29 01:09:37 +01:00
|
|
|
testMatch: ['**/test/**/*.+(ts|tsx|js)', '**/src/**/(*.)+(spec|test).+(ts|tsx|js)'],
|
2022-01-05 10:41:29 +01:00
|
|
|
transform: {
|
|
|
|
'^.+\\.(ts|tsx)$': 'ts-jest',
|
|
|
|
},
|
2022-02-01 14:15:00 +01:00
|
|
|
testPathIgnorePatterns: ['./examples'],
|
2022-01-11 18:14:53 +01:00
|
|
|
testEnvironment: 'miniflare',
|
|
|
|
testEnvironmentOptions: {
|
2022-01-29 01:09:37 +01:00
|
|
|
/*
|
|
|
|
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'],
|
|
|
|
*/
|
2022-01-11 18:14:53 +01:00
|
|
|
},
|
2022-01-05 10:41:29 +01:00
|
|
|
}
|