chore(node): add JSON module import assertion
This commit is contained in:
parent
a1ec977837
commit
72f58ed366
|
@ -42,7 +42,7 @@
|
|||
"prebuild:demo": "npm run build",
|
||||
"build:demo": "mkdir -p public && cat node_modules/resume-schema/sample.resume.json | ./bin/cli.js > public/index.html",
|
||||
"format": "prettier --ignore-path .gitignore .",
|
||||
"lint": "eslint --ignore-path .gitignore .",
|
||||
"lint": "eslint --ignore-path .gitignore --ignore-pattern test .",
|
||||
"prepare": "husky install",
|
||||
"prepublishOnly": "npm run build",
|
||||
"test": "c8 tap --node-arg=--experimental-json-modules --no-coverage"
|
||||
|
|
|
@ -2,7 +2,7 @@ import { test } from 'tap'
|
|||
import { HtmlValidate } from 'html-validate'
|
||||
|
||||
import { render } from '../index.js'
|
||||
import resume from 'resume-schema/sample.resume.json'
|
||||
import resume from 'resume-schema/sample.resume.json' assert { type: 'json' }
|
||||
|
||||
// Overwrite empty sample resume values
|
||||
resume.basics.image = 'image.jpg'
|
||||
|
|
Loading…
Reference in New Issue