Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintrc.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"SwitchCase": 1
}
],
"max-len": [
1,
120
],
"object-curly-spacing": [
"error",
"always"
Expand Down Expand Up @@ -86,6 +90,7 @@
}
],
"import/no-cycle": "error",
"import/no-unused-modules": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": [
"error"
Expand Down
2 changes: 1 addition & 1 deletion .version-change-type
Original file line number Diff line number Diff line change
@@ -1 +1 @@
patch
major
57 changes: 57 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const config = {
preset: "ts-jest",
resolver: "ts-jest-resolver",
testPathIgnorePatterns: [".d.ts", ".js"],
verbose: true,
roots: ["<rootDir>/test", "<rootDir>/src"],
collectCoverageFrom: ["src/**/*.ts", "src/**/*.tsx"],
coveragePathIgnorePatterns: [
"src/index.ts",
"src/browser.ts",
"src/node.ts",
"src/types/index.ts",
"src/utils/index.ts",
"src/widgets/controllers/index.ts",
"src/widgets/models/index.ts",
"src/widgets/views/index.ts",
"src/widgets/views/components/index.ts"
],
coverageProvider: "v8",
coverageThreshold: {
global: {
branches: 69,
functions: 68,
lines: 66,
statements: 66
}
},
extensionsToTreatAsEsm: [".ts", ".tsx", ".jsx"],
globals: {
NODE_ENV: "test"
},
moduleNameMapper: {
uuid: require.resolve('uuid'),
"^(\\.{1,2}/.*)\\.js$": "$1"
},
testEnvironment: "jest-environment-node",
testEnvironmentOptions: {
customExportConditions: ['default'],
},
transform: {
"^.+\\.ts$": ["ts-jest", {
"tsconfig": "tsconfig.test.json",
"isolatedModules": true,
"useESM": true
}],
"^.+\\.[jt]s[x]": ["ts-jest", {
"tsconfig": "tsconfig.test.json",
"isolatedModules": true,
"useESM": true
}]
},
transformIgnorePatterns: [
"\\/node_modules\\/(?!((@tinystacks|@aws-sdk|uuid)\\/))"
]
}

module.exports = config;
35 changes: 0 additions & 35 deletions jest.config.json

This file was deleted.

Loading