Skip to content

Commit f3804f5

Browse files
fix oxlint-native test harness
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent 89cc6b3 commit f3804f5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lint-rules/no-manual-dispose.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ describe('epic-web/no-manual-dispose', () => {
1313
})
1414
1515
function cleanup(resource) {
16-
resource.dispose()
16+
return resource.dispose()
1717
}
18+
19+
cleanup(createTempFile())
1820
`,
1921
rules: {
2022
'epic-web/no-manual-dispose': 'warn',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"format": "prettier . --write",
2424
"lint": "oxlint --config oxlint-config.json .",
25-
"test": "vitest run",
25+
"test": "vitest run lint-rules/*.test.js",
2626
"typecheck": "tsc",
2727
"validate": "run-p -l format lint typecheck"
2828
},

0 commit comments

Comments
 (0)