This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
45 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018-2022 Ruslan Lopatin <[email protected]> | ||
Copyright (c) 2018-2023 Ruslan Lopatin <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,7 @@ | ||
export default { | ||
preset: 'ts-jest/presets/default-esm', | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
'src/**/*.ts', | ||
'!src/spec/**/*.ts', | ||
'!src/**/*.spec.ts', | ||
'!src/**/index.ts', | ||
'!**/node_modules/**', | ||
], | ||
coverageDirectory: 'target/coverage', | ||
coverageThreshold: { | ||
global: { | ||
statements: 100, | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
}, | ||
}, | ||
extensionsToTreatAsEsm: ['.ts'], | ||
reporters: [ | ||
'default', | ||
[ | ||
'jest-junit', | ||
{ | ||
suiteName: '@wesib/generic', | ||
outputDirectory: './target/test-results', | ||
classNameTemplate: '{classname}: {title}', | ||
titleTemplate: '{classname}: {title}', | ||
ancestorSeparator: ' › ', | ||
usePathForSuiteName: 'true', | ||
}, | ||
], | ||
], | ||
import { configureJest } from '@run-z/project-config'; | ||
|
||
export default await configureJest({ | ||
restoreMocks: true, | ||
setupFiles: ['cross-fetch/polyfill'], | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: 'tsconfig.spec.json', | ||
useESM: true, | ||
}, | ||
], | ||
}, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
{ | ||
"extends": "@run-z/project-config/tsconfig.lib.json", | ||
"compilerOptions": { | ||
"moduleResolution": "Node", | ||
"module": "ES2015", | ||
"target": "ES2019", | ||
"strict": true, | ||
"experimentalDecorators": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitOverride": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"importHelpers": true, | ||
"noEmitHelpers": true, | ||
"lib": ["DOM", "ES2019"], | ||
"types": [], | ||
"module": "ES2015", | ||
"moduleResolution": "Node", | ||
"outDir": "target/js", | ||
"sourceMap": true, | ||
"newLine": "LF" | ||
"target": "ES2019", | ||
"types": [] | ||
}, | ||
"include": ["src/**/*"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"entryPoints": ["src/index.ts"], | ||
"name": "Wesib: Generic Components", | ||
"out": "./target/typedoc", | ||
"tsconfig": "tsconfig.main.json" | ||
"out": "./target/typedoc" | ||
} |