-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Non-functional refactor to improve testability (#143)
- Refactor common logic, cut down on duplication - Open up possibilities for unit testing in the future - Switch to jest for test orchestration - Add some .bicep and .biceparam test cases
- Loading branch information
1 parent
07ed08a
commit 732d82b
Showing
25 changed files
with
7,832 additions
and
1,373 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,48 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
project: './tsconfig.json', | ||
}, | ||
plugins: ["header"], | ||
extends: ["eslint:recommended", "plugin:prettier/recommended"], | ||
ignorePatterns: ["/out/**/*"], | ||
rules: { | ||
"header/header": [ | ||
2, | ||
"line", | ||
[ | ||
" Copyright (c) Microsoft Corporation.", | ||
" Licensed under the MIT License.", | ||
], | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts"], | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jest/all", | ||
"plugin:prettier/recommended", | ||
], | ||
rules: { | ||
"jest/no-hooks": "off", | ||
"jest/prefer-expect-assertions": "off", | ||
"jest/expect-expect": [ | ||
"error", | ||
{ | ||
assertFunctionNames: ["expect*", "invokingBicepCommand"], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["*.js"], | ||
env: { node: true }, | ||
}, | ||
], | ||
}; |
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
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
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.