Skip to content

Commit

Permalink
Replace mocha+nyc with jest (FuelLabs#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicanC authored Nov 30, 2021
1 parent ef0f3c6 commit 155b06e
Show file tree
Hide file tree
Showing 34 changed files with 9,879 additions and 7,230 deletions.
5 changes: 0 additions & 5 deletions .mocharc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["orta.vscode-jest"]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "node_modules/.bin/jest",
"cwd": "${workspaceFolder}",
"args": ["--runInBand", "--watchAll=false"]
}
]
}
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
collectCoverageFrom: ['packages/**/*.[jt]s', '!**/node_modules/**', '!**/dist/**'],
};
Loading

0 comments on commit 155b06e

Please sign in to comment.