-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rewrite to TS and adjust to the v2 ParserJS (#141)
- Loading branch information
1 parent
b2e961d
commit 33ee9c4
Showing
20 changed files
with
16,746 additions
and
14,740 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
*.tgz | ||
.vscode | ||
.DS_Store | ||
/docs | ||
/coverage | ||
/lib | ||
/esm | ||
/cjs |
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 +1,9 @@ | ||
node_modules | ||
node_modules | ||
*.tgz | ||
.vscode | ||
.DS_Store | ||
/docs | ||
/coverage | ||
/lib | ||
/esm | ||
/cjs |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.DS_Store | ||
*.tgz | ||
*.swp | ||
.github | ||
.all-contributorsrc | ||
.editorconfig | ||
assets/logo.png | ||
vscode | ||
coverage | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
const config: Config.InitialOptions = { | ||
coverageReporters: [ | ||
'text' | ||
], | ||
transform: { | ||
'^.+\\.(t|j)sx?$': '@swc/jest', | ||
}, | ||
// The root of your source code, typically /src | ||
// `<rootDir>` is a token Jest substitutes | ||
roots: ['<rootDir>'], | ||
moduleNameMapper: { | ||
'^nimma/legacy$': '<rootDir>/node_modules/nimma/dist/legacy/cjs/index.js', | ||
'^nimma/(.*)': '<rootDir>/node_modules/nimma/dist/cjs/$1', | ||
'^@stoplight/spectral-ruleset-bundler/(.*)$': '<rootDir>/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1' | ||
}, | ||
|
||
// Test spec file resolution pattern | ||
// Matches parent folder `__tests__` and filename | ||
// should contain `test` or `spec`. | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
// Module file extensions for importing | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testTimeout: 10000, | ||
collectCoverageFrom: [ | ||
'src/**' | ||
], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.