Skip to content

Commit

Permalink
Use Node test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 6, 2023
1 parent 2a50612 commit 0a1f3e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@
"dependencies": {
"@types/eslint": "^8.0.0",
"vfile": "^5.0.0",
"vfile-message": "^3.0.0",
"vfile-statistics": "^2.0.0"
},
"devDependencies": {
"@types/tape": "^4.0.0",
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.53.0"
Expand Down
9 changes: 4 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import test from 'tape'
import assert from 'node:assert/strict'
import test from 'node:test'
import {VFile} from 'vfile'
import {toESLint} from './index.js'

test('toESLint', (t) => {
test('toESLint', () => {
const file = new VFile({path: '~/example.md'})

const message = file.info('?')
Expand All @@ -26,7 +27,7 @@ test('toESLint', (t) => {
})
} catch {}

t.deepEqual(toESLint([file]), [
assert.deepEqual(toESLint([file]), [
{
filePath: '~/example.md',
messages: [
Expand Down Expand Up @@ -80,6 +81,4 @@ test('toESLint', (t) => {
suppressedMessages: []
}
])

t.end()
})

0 comments on commit 0a1f3e2

Please sign in to comment.