Skip to content

Instantly share code, notes, and snippets.

@tpluscode
Created May 23, 2022 14:16
Show Gist options
  • Save tpluscode/cbcd3f47b45f719475e079dd76801344 to your computer and use it in GitHub Desktop.
Save tpluscode/cbcd3f47b45f719475e079dd76801344 to your computer and use it in GitHub Desktop.
ts-node+mocha+esm+@types
{
"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"
]
}
}
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)
})
})
{
"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