Created
May 23, 2022 14:16
-
-
Save tpluscode/cbcd3f47b45f719475e079dd76801344 to your computer and use it in GitHub Desktop.
ts-node+mocha+esm+@types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "mocha-ts-node", | |
"type": "module", | |
"scripts": { | |
"test": "mocha test.ts" | |
}, | |
"dependencies": { | |
"@rdfjs/term-set": "2.0.1", | |
"@types/mocha": "9.1.1", | |
"@types/rdfjs__term-set": "2.0.0", | |
"mocha": "9.2.2", | |
"ts-node": "10.8.0", | |
"typescript": "4.6.4" | |
}, | |
"mocha": { | |
"loader": "ts-node/esm", | |
"extension": [ | |
"ts" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {describe, it} from 'mocha' | |
import * as assert from 'assert' | |
import TermSet from '@rdfjs/term-set' | |
describe('TermSet', () => { | |
it('should be defined', () => { | |
assert.ok(TermSet) | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES2019", | |
"module": "ESNext", | |
"moduleResolution": "Node", | |
"esModuleInterop": true, | |
"declaration": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment