Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jul 26, 2024
1 parent cbee3ab commit 404faa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/compiler/config/test/validate-testing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ describe('validateTesting', () => {

expect(config.testing.testMatch).toBeUndefined();
expect(config.testing.testRegex).toEqual(['/regexStr/']);
})
});
});

describe('runner', () => {
Expand Down
5 changes: 2 additions & 3 deletions src/testing/jest/jest-27-and-under/jest-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ export function buildJestConfig(config: d.ValidatedConfig): string {
jestConfig.verbose = stencilConfigTesting.verbose;
}
if (typeof stencilConfigTesting.bail !== 'undefined') {
jestConfig.bail = typeof stencilConfigTesting.bail === 'number'
? stencilConfigTesting.bail
: stencilConfigTesting.bail ? 1 : 0;
jestConfig.bail =
typeof stencilConfigTesting.bail === 'number' ? stencilConfigTesting.bail : stencilConfigTesting.bail ? 1 : 0;
}
if (stencilConfigTesting.prettierPath) {
jestConfig.prettierPath = stencilConfigTesting.prettierPath;
Expand Down

0 comments on commit 404faa8

Please sign in to comment.