Skip to content

Commit

Permalink
Fix locator
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Nov 17, 2023
1 parent b464128 commit fb5cd86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getTestRule } from "jest-preset-stylelint";
import path from "path";
import { fileURLToPath } from "url";
// import path from "path";
// import { fileURLToPath } from "url";

const __dirname = path.dirname(fileURLToPath(import.meta.url));
//const __dirname = path.dirname(fileURLToPath(import.meta.url));

global.testRule = getTestRule({
plugins: [path.resolve(__dirname, "./lib/index.js")],
//plugins: [path.resolve(__dirname, "./lib/index.js")],
});
1 change: 1 addition & 0 deletions lib/rules/alpha-values/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ testRule({
ruleName,
config: [10, 20],
fix: true,
plugins: [rule],

accept: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"node": ">=18"
},
"scripts": {
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest lib/rules/alpha-values/__tests__/index.js --runInBand",
"check": "npm-run-all --parallel check:*",
"check:js": "eslint \"**/*.js\"",
"check:formating": "prettier \"**/*.{js,md,yml}\" --check",
Expand Down

0 comments on commit fb5cd86

Please sign in to comment.