Add script to test in production
This commit is contained in:
parent
b19151cedd
commit
11ee289355
2 changed files with 7 additions and 2 deletions
|
@ -65,7 +65,9 @@
|
|||
"prepack": "npm run build && npm run format",
|
||||
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build",
|
||||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
||||
"test-api": "node --conditions development test/index.js",
|
||||
"test-api-prod": "node --conditions production test/index.js",
|
||||
"test-api-dev": "node --conditions development test/index.js",
|
||||
"test-api": "npm run test-api-dev && npm run test-api-prod",
|
||||
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
|
||||
"test": "npm run build && npm run format && npm run test-coverage"
|
||||
},
|
||||
|
|
|
@ -8,7 +8,10 @@ import assert from 'node:assert/strict'
|
|||
import test from 'node:test'
|
||||
import {micromark} from 'micromark'
|
||||
import {htmlVoidElements} from 'html-void-elements'
|
||||
import {directive as syntax, directiveHtml as html} from '../dev/index.js'
|
||||
import {
|
||||
directive as syntax,
|
||||
directiveHtml as html
|
||||
} from 'micromark-extension-directive'
|
||||
|
||||
const own = {}.hasOwnProperty
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue