forked from frequency-chain/frequency
-
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.
E2E Testing add Prettier and Eslint (frequency-chain#1767)
# Goal The goal of this PR is to get e2e tests under formatting and eslint control. Closes frequency-chain#1764
- Loading branch information
Showing
38 changed files
with
4,304 additions
and
3,266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
ignorePatterns: ['dist'], | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:mocha/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'mocha'], | ||
root: true, | ||
env: { | ||
mocha: true, | ||
node: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', // Don't worry about an any in a test | ||
'@typescript-eslint/no-unused-vars': 'warn', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
}, | ||
}; |
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,13 +1,9 @@ | ||
{ | ||
"exit": true, | ||
"extension": ["ts"], | ||
"parallel": false, | ||
"require": [ | ||
"scaffolding/globalHooks.ts", | ||
"scaffolding/rootHooks.ts", | ||
"scaffolding/extrinsicHelpers.ts" | ||
], | ||
"loader": "ts-node/esm", | ||
"spec": ["./load-tests/**/*.test.ts"], | ||
"timeout": 60000 | ||
"exit": true, | ||
"extension": ["ts"], | ||
"parallel": false, | ||
"require": ["scaffolding/globalHooks.ts", "scaffolding/rootHooks.ts", "scaffolding/extrinsicHelpers.ts"], | ||
"loader": "ts-node/esm", | ||
"spec": ["./load-tests/**/*.test.ts"], | ||
"timeout": 60000 | ||
} |
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,13 +1,9 @@ | ||
{ | ||
"exit": true, | ||
"extension": ["ts"], | ||
"parallel": true, | ||
"require": [ | ||
"scaffolding/globalHooks.ts", | ||
"scaffolding/rootHooks.ts", | ||
"scaffolding/extrinsicHelpers.ts" | ||
], | ||
"loader": "ts-node/esm", | ||
"spec": ["./{,!(node_modules|load-tests)/**}/*.test.ts"], | ||
"timeout": 20000 | ||
"exit": true, | ||
"extension": ["ts"], | ||
"parallel": true, | ||
"require": ["scaffolding/globalHooks.ts", "scaffolding/rootHooks.ts", "scaffolding/extrinsicHelpers.ts"], | ||
"loader": "ts-node/esm", | ||
"spec": ["./{,!(node_modules|load-tests)/**}/*.test.ts"], | ||
"timeout": 20000 | ||
} |
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,8 +1,11 @@ | ||
# package.json is formatted by package managers, so we ignore it here | ||
package.json | ||
package-lock.json | ||
build/* | ||
dist/* | ||
coverage/* | ||
multimodules/* | ||
/*.d.ts | ||
/*.map | ||
/*.js | ||
**/*.md |
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,8 @@ | ||
{} | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"useTabs": false, | ||
"printWidth": 120 | ||
} |
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,17 +1,9 @@ | ||
{ | ||
"exit": true, | ||
"extension": [ | ||
"ts" | ||
], | ||
"parallel": true, | ||
"require": [ | ||
"scaffolding/globalHooks.ts", | ||
"scaffolding/rootHooks.ts", | ||
"scaffolding/extrinsicHelpers.ts" | ||
], | ||
"loader": "ts-node/esm", | ||
"spec": [ | ||
"./{,!(node_modules|load-tests)/**}/*.test.ts" | ||
], | ||
"timeout": 600000 | ||
"exit": true, | ||
"extension": ["ts"], | ||
"parallel": true, | ||
"require": ["scaffolding/globalHooks.ts", "scaffolding/rootHooks.ts", "scaffolding/extrinsicHelpers.ts"], | ||
"loader": "ts-node/esm", | ||
"spec": ["./{,!(node_modules|load-tests)/**}/*.test.ts"], | ||
"timeout": 600000 | ||
} |
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
Oops, something went wrong.