Skip to content

Commit

Permalink
test: Alias the older strong-mock
Browse files Browse the repository at this point in the history
vitest doesn't seem to like importing it with the same name as the
project.
  • Loading branch information
NiGhTTraX committed Dec 13, 2024
1 parent 6996c70 commit 06003f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-prettier": "~5.2.1",
"prettier": "~3.4.2",
"sm-old": "npm:[email protected]",
"standard-version": "~9.5.0",
"strip-ansi": "~7.1.0",
"strong-mock": "~8.0.1",
"ts-node": "~10.9.2",
"tslib": "~2.8.0",
"tsup": "~8.3.5",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/old.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This is an older, battle tested version of strong-mock that we use to
* test the current version.
*/
import * as SM from 'strong-mock';
import * as SM from 'sm-old';

// Exporting manually instead of export * from because IntelliJ
// can't autocomplete the import otherwise :(.
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"noEmit": true,
"declaration": false,

"target": "ES6",
"target": "ES2019",
"downlevelIteration": true,

"types": [],
"lib": ["ES6", "ES2019"],
"skipLibCheck": true,

"strict": true,
Expand Down

0 comments on commit 06003f4

Please sign in to comment.