Skip to content

Commit b45accf

Browse files
committed
test(linter/plugins): standardize test fixture structure
1 parent 1a6d7ae commit b45accf

File tree

73 files changed

+150
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+150
-145
lines changed

apps/oxlint/test/__snapshots__/e2e.test.ts.snap

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

apps/oxlint/test/e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ describe('oxlint CLI', () => {
236236
});
237237

238238
it('should not apply fixes when `--fix` is disabled', async () => {
239-
const fixtureFilePath = pathJoin(PACKAGE_ROOT_PATH, 'test/fixtures/fixes/index.js');
239+
const fixtureFilePath = pathJoin(PACKAGE_ROOT_PATH, 'test/fixtures/fixes/files/index.js');
240240
const codeBefore = fs.readFileSync(fixtureFilePath, 'utf8');
241241

242242
let error = true;
@@ -256,7 +256,7 @@ describe('oxlint CLI', () => {
256256
});
257257

258258
it('should apply fixes when `--fix` is enabled', async () => {
259-
const fixtureFilePath = pathJoin(PACKAGE_ROOT_PATH, 'test/fixtures/fixes/index.js');
259+
const fixtureFilePath = pathJoin(PACKAGE_ROOT_PATH, 'test/fixtures/fixes/files/index.js');
260260
const codeBefore = fs.readFileSync(fixtureFilePath, 'utf8');
261261

262262
let error = true;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"plugins": ["./test_plugin"],
2+
"plugins": ["./plugin.js"],
33
"rules": {
44
"basic-custom-plugin/no-debugger": "error"
55
},
6-
"ignorePatterns": ["test_plugin/**"]
6+
"ignorePatterns": ["**/*", "!files/**"]
77
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"plugins": ["./test_plugin"],
2+
"plugins": ["./plugin.js"],
33
"rules": {
44
"basic-custom-plugin/no-debugger": "error"
55
},
6-
"ignorePatterns": ["test_plugin/**"]
6+
"ignorePatterns": ["**/*", "!files/**"]
77
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"plugins": ["./test_plugin"],
2+
"plugins": ["./plugin.js"],
33
"rules": {
44
"basic-custom-plugin/no-debugger": "error",
55
"basic-custom-plugin/no-debugger-2": "error",
66
"basic-custom-plugin/no-identifiers-named-foo": "error"
77
},
8-
"ignorePatterns": ["test_plugin/**"]
8+
"ignorePatterns": ["**/*", "!files/**"]
99
}

0 commit comments

Comments
 (0)