feat(api): add tests

This commit is contained in:
41666 2022-01-27 22:30:24 -05:00
parent 688954a2e0
commit 480987aa90
26 changed files with 541 additions and 91 deletions

View file

@ -0,0 +1,16 @@
module.exports = {
preset: 'ts-jest/presets/default-esm',
name: 'api',
rootDir: '../../',
testEnvironment: 'miniflare',
testEnvironmentOptions: {
wranglerConfigPath: 'packages/api/wrangler.toml',
envPath: '.env',
},
globals: {
'ts-jest': {
tsconfig: '<rootDir>/packages/api/tsconfig.test.json',
useESM: true,
},
},
};