Skip to content

Instantly share code, notes, and snippets.

@wmakeev
Last active November 22, 2021 11:29
Show Gist options
  • Save wmakeev/9178bd097126d6f638a49c7ac9db62b2 to your computer and use it in GitHub Desktop.
Save wmakeev/9178bd097126d6f638a49c7ac9db62b2 to your computer and use it in GitHub Desktop.
[03 - Tape template] #template #tests

tape test env template

npm install -D tape @types/tape dotenv
import test from 'tape'
import index from '../src'
test('index', async t => {
t.pass()
})
import './index.test'
{
"scripts": {
"test": "npm run build && NODE_OPTIONS=--enable-source-maps node -r dotenv/config ./build/test"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment