No pretty output using node v10.5.0
stephanschubert opened this issue · 4 comments
EDIT: I'm using babel-preset-power-assert@2.0.0
for babel 6.
It's fine using node v8.1.4
:
assert.ok(three * (seven * ten) === three)
| | | | | | |
| | | | | | 3
| | | | 10 false
| | 7 70
3 210
[number] three
=> 3
[number] three * (seven * ten)
=> 210
8 | const seven = 7;
9 | const ten = 10;
> 10 | assert.ok(three * (seven * ten) === three);
| ^
But after switching to node v10.5.0
:
assert.equal(received, expected) or assert(received)
Expected value to be equal to:
true
Received:
false
8 | const seven = 7;
9 | const ten = 10;
> 10 | assert.ok(three * (seven * ten) === three);
| ^
Still not working with power-assert 1.6.1
and jest 23.5.0
.
Same here
@Jazen @kossnocorp So sorry for my late response.
I've created a small temporal repository for power-assert x Node10 x Jest problem determination but worked as expected with pretty output.
I need your help. Would you create a small repository for reproduction?
@twada I can't reproduce it anymore...
For others searching for this, here's how my monorepo setup looks like now:
// presets in <root>/.babelrc
{
"presets": [
"env",
"jest",
"react",
"power-assert"
],
...
}
I moved all dev deps into <root>/package.json
and switched to exact versioning to avoid any mismatches with packages required as production deps in packages/*/package.json
:
// in <root>/package.json
"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-jest": "23.6.0",
"babel-preset-power-assert": "2.0.0",
...
"jest": "23.6.0",
...
"power-assert": "1.6.1",
...
...and finally setting them up via npm i && lerna bootstrap --hoist
(run in <root>
)
HTH, and thank you for taking the time @twada.