mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
feat(api): add tests
This commit is contained in:
parent
688954a2e0
commit
480987aa90
26 changed files with 541 additions and 91 deletions
16
packages/api/jest.config.js
Normal file
16
packages/api/jest.config.js
Normal 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,
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue