Skip to content

Commit 0c4f545

Browse files
committed
chore: disable jest and ava, pending transformers
1 parent 500d44e commit 0c4f545

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

jest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"devDependencies": {
3-
"jest": "^24.0.0",
3+
"jest": "^25.0.0",
44
"jest-transform-stub": "^2.0.0",
55
// @if babel
6-
"babel-jest": "^24.0.0",
6+
"babel-jest": "^25.0.0",
77
// @endif
88
// @if typescript
99
"@types/jest": "^24.0.0",

questions.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ module.exports = [
5555
{
5656
message: 'What unit testing framework to use?',
5757
choices: [
58-
{value: 'jest', title: 'Jest', hint: 'Runs in Node.js, simulates browser natively, with a focus on simplicity.'},
58+
// Disable jest and ava for now.
59+
// TODO: build some custom transformer to apply our conventions when running in nodejs env.
60+
// Note in test env, probably need to remove "modules": false from babelrc and "module": "esnext" from tsconfig.
61+
// {value: 'jest', title: 'Jest', hint: 'Runs in Node.js, simulates browser natively, with a focus on simplicity.'},
62+
// {value: 'ava', title: 'Ava + browser-env', hint: 'Runs in Node.js, simulates browser with browser-env (jsdom). A test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that let you write tests more effectively.'},
5963
{value: 'jasmine', title: 'Jasmine', hint: 'Runs in browser, a behavior-driven testing framework.'},
6064
{value: 'mocha', title: 'Mocha + Chai', hint: 'Runs in browser, a feature-rich JavaScript test framework for node and browsers.'},
6165
{value: 'tape', title: 'Tape', hint: 'Runs in browser, tap-producing test harness for node and browsers.'},
62-
{value: 'ava', title: 'Ava + browser-env', hint: 'Runs in Node.js, simulates browser with browser-env (jsdom). A test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that let you write tests more effectively.'},
6366
{value: 'no-unit-tests', title: 'None', hint: 'Skip testing. My code is always perfect :-)'}
6467
]
6568
},

0 commit comments

Comments
 (0)