Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit test #170

Merged
merged 3 commits into from
May 10, 2023
Merged
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
*.png binary
*.gif binary
*.ico binary

package-lock.json merge=theirs
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ dist/
# Local files
*.local

# Test Coverage
coverage/

# Playwright
/test-results/
/playwright-report/
Expand Down
15 changes: 4 additions & 11 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/*
* For a detailed explanation regarding each configuration property, visit:
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/

/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,

"extensionsToTreatAsEsm": [".ts"],

// Stop running tests after `n` failures
// bail: 0,

Expand All @@ -20,13 +17,13 @@ export default {
// clearMocks: false,

// Indicates whether the coverage information should be collected while executing the test
// collectCoverage: false,
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
// collectCoverageFrom: undefined,

// The directory where Jest should output its coverage files
// coverageDirectory: undefined,
coverageDirectory: "coverage",

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
Expand Down Expand Up @@ -68,11 +65,7 @@ export default {
// globalTeardown: undefined,

// A set of global variables that need to be available in all test environments
globals: {
'ts-jest': {
useESM: true,
},
},
// globals: {},

// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
// maxWorkers: "50%",
Expand Down
Loading