-
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
BSKY
authored and
Josh Gross
committed
Nov 12, 2019
1 parent
3150825
commit fb50aa4
Showing
12 changed files
with
1,044 additions
and
91 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,16 @@ | ||
| { | ||
| "env": { "node": true, "jest": true }, | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { "ecmaVersion": 2020, "sourceType": "module" }, | ||
| "extends": [ | ||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/eslint-recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:import/errors", | ||
| "plugin:import/warnings", | ||
| "plugin:import/typescript", | ||
| "plugin:prettier/recommended", | ||
| "prettier/@typescript-eslint" | ||
| ], | ||
| "plugins": ["@typescript-eslint", "jest"] | ||
| } |
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,22 +1,23 @@ | ||
| require('nock').disableNetConnect(); | ||
| require("nock").disableNetConnect(); | ||
|
|
||
| module.exports = { | ||
| clearMocks: true, | ||
| moduleFileExtensions: ['js', 'ts'], | ||
| testEnvironment: 'node', | ||
| testMatch: ['**/*.test.ts'], | ||
| testRunner: 'jest-circus/runner', | ||
| transform: { | ||
| '^.+\\.ts$': 'ts-jest' | ||
| }, | ||
| verbose: true | ||
| } | ||
| clearMocks: true, | ||
| moduleFileExtensions: ["js", "ts"], | ||
| testEnvironment: "node", | ||
| testMatch: ["**/*.test.ts"], | ||
| testRunner: "jest-circus/runner", | ||
| transform: { | ||
| "^.+\\.ts$": "ts-jest" | ||
| }, | ||
| verbose: true | ||
| }; | ||
|
|
||
| const processStdoutWrite = process.stdout.write.bind(process.stdout) | ||
| const processStdoutWrite = process.stdout.write.bind(process.stdout); | ||
| // eslint-disable-next-line @typescript-eslint/explicit-function-return-type | ||
| process.stdout.write = (str, encoding, cb) => { | ||
| // Core library will directly call process.stdout.write for commands | ||
| // We don't want :: commands to be executed by the runner during tests | ||
| if (!str.match(/^::/)) { | ||
| return processStdoutWrite(str, encoding, cb); | ||
| } | ||
| } | ||
| // Core library will directly call process.stdout.write for commands | ||
| // We don't want :: commands to be executed by the runner during tests | ||
| if (!str.match(/^::/)) { | ||
| return processStdoutWrite(str, encoding, cb); | ||
| } | ||
| }; |
Oops, something went wrong.