test: add the first E2E test and configuration to CI (#316)

* add tests
This commit is contained in:
Takanori Matsumoto
2024-03-25 13:01:05 +09:00
committed by GitHub
parent bdc98c6fa8
commit 5cda8b1b03
17 changed files with 4380 additions and 29 deletions
+27
View File
@@ -0,0 +1,27 @@
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
import type {Config} from 'jest';
const config: Config = {
coverageProvider: "v8",
moduleDirectories: [
"node_modules",
"src",
],
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/test/jest-setup.ts'],
testEnvironment: "node",
testRegex: [
'.*\\.test\\.ts$',
],
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {
diagnostics: false,
}],
}
};
export default config;