Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiamanzati committed Feb 1, 2025
1 parent 203fdd7 commit b038019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/dprint.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dprint as rule } from "@effect/eslint-plugin/rules/dprint"
import { ruleTester } from "./utils"
import { ruleTester } from "@effect/eslint-plugin/test/utils/index"

Check failure on line 2 in test/dprint.test.ts

View workflow job for this annotation

GitHub Actions / Tests

test/dprint.test.ts

Error: Cannot find module '@effect/eslint-plugin/test/utils/index' imported from '/home/runner/work/eslint-plugin/eslint-plugin/test/dprint.test.ts'. - If you rely on tsconfig.json's "paths" to resolve modules, please install "vite-tsconfig-paths" plugin to handle module resolution. - Make sure you don't have relative aliases in your Vitest config. Use absolute paths instead. Read more: https://vitest.dev/guide/common-errors ❯ test/dprint.test.ts:2:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }

ruleTester.run("dprint", rule, {
valid: [
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"removeComments": false,
"plugins": [{ "name": "@effect/language-service" }],
"paths": {
"@effect/eslint-plugin/test": ["./test/index.js"],
"@effect/eslint-plugin/test/*": ["./test/*.js"],
"@effect/eslint-plugin": ["./src/index.js"],
"@effect/eslint-plugin/*": ["./src/*.js"]
}
Expand Down

0 comments on commit b038019

Please sign in to comment.