Skip to content

Commit 7465ffd

Browse files
committed
test: separate cases, so it's easier to know what fails
1 parent 1ddcdc7 commit 7465ffd

File tree

17 files changed

+164
-88
lines changed

17 files changed

+164
-88
lines changed

.markdownlint-cli2.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"MD033": false
77
},
88
"globs": ["**/*.{md,mdx}"],
9-
"ignores": ["**/node_modules", "**/test/fixtures"],
9+
"ignores": ["**/node_modules", "**/test/fixtures/**"],
1010
"customRules": ["./src/index.js"]
1111
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"lint:prettier": "prettier . --check --ignore-path .gitignore",
3838
"lint:javascript": "tsc --project jsconfig.json --noEmit",
3939
"lint:staged": "lint-staged",
40-
"test": "node --test ./test",
40+
"test": "node --test --experimental-test-coverage ./test",
4141
"release": "semantic-release",
4242
"postinstall": "husky install",
4343
"prepublishOnly": "pinst --disable",

test/basic.test.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/fixtures/Invalid.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/fixtures/Valid.md

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Invalid
2+
3+
[File](./index.test.js)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Valid
2+
3+
## Existing Heading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Invalid
2+
3+
[Link fragment](./awesome.md#non-existing-heading)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Invalid
2+
3+
![Image](./image.png)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Valid
2+
3+
[File](../../index.test.js)

0 commit comments

Comments
 (0)