Skip to content

Commit fb5cd86

Browse files
committed
Fix locator
1 parent b464128 commit fb5cd86

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

jest.setup.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { getTestRule } from "jest-preset-stylelint";
2-
import path from "path";
3-
import { fileURLToPath } from "url";
2+
// import path from "path";
3+
// import { fileURLToPath } from "url";
44

5-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
5+
//const __dirname = path.dirname(fileURLToPath(import.meta.url));
66

77
global.testRule = getTestRule({
8-
plugins: [path.resolve(__dirname, "./lib/index.js")],
8+
//plugins: [path.resolve(__dirname, "./lib/index.js")],
99
});

lib/rules/alpha-values/__tests__/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ testRule({
99
ruleName,
1010
config: [10, 20],
1111
fix: true,
12+
plugins: [rule],
1213

1314
accept: [
1415
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": ">=18"
2626
},
2727
"scripts": {
28-
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
28+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest lib/rules/alpha-values/__tests__/index.js --runInBand",
2929
"check": "npm-run-all --parallel check:*",
3030
"check:js": "eslint \"**/*.js\"",
3131
"check:formating": "prettier \"**/*.{js,md,yml}\" --check",

0 commit comments

Comments
 (0)