Skip to content

Commit

Permalink
chore: move tsconfig exclude to rollup config to fix type errors in t…
Browse files Browse the repository at this point in the history
…ests during dev (salesforce#4458)
  • Loading branch information
cardoso authored Aug 19, 2024
1 parent 046c03e commit a12a3cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/@lwc/errors/src/__tests__/errors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ interface CustomMatchers<R = unknown> {
toBeInRange: (range: { min: number; max: number }, key: string) => R;
}

import 'vitest';

declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
interface AsymmetricMatchersContaining extends CustomMatchers {}
Expand Down
1 change: 1 addition & 0 deletions scripts/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function sharedPlugins() {
return [
typescript({
tsconfig: path.join(packageRoot, 'tsconfig.json'),
exclude: ['**/__tests__/**'],
noEmitOnError: !watchMode, // in watch mode, do not exit with an error if typechecking fails
...(watchMode && {
incremental: true,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"noEmit": true
},

"exclude": ["**/__tests__"]
"exclude": []
}

0 comments on commit a12a3cd

Please sign in to comment.