➜ tagprobot git:(129-improved-tests) test
> tagprobot@1.0.0 test /home/david/Repos/tagprobot
> babel-tape-runner test/**/*.js | faucet
✓ updatePath
✓ checks isVisualMode
✓ calls removeChild on each existing sprite
✓ adds a new sprite for each item in path to the renderer
✓ clearSprites
....
✓ assertGridInBounds: does not throw errors when inputs are in bounds
✓ assertGridInBounds: throws errors when inputs are not in bounds
# tests 195
# pass 195
✓ ok
Reinstall babel-plugin-rewire through the git repository:
➜ tagprobot git:(129-improved-tests) ✗ test
> tagprobot@1.0.0 test /home/david/Repos/tagprobot
> babel-tape-runner test/**/*.js | faucet
/home/david/Repos/tagprobot/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180
throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
^
ReferenceError: Unknown plugin "babel-plugin-rewire" specified in "/home/david/Repos/tagprobot/.babelrc" at 1, attempted to resolve relative to "/home/david/Repos/tagprobot"
at /home/david/Repos/tagprobot/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (<anonymous>)
at Function.normalisePlugins (/home/david/Repos/tagprobot/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/home/david/Repos/tagprobot/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (/home/david/Repos/tagprobot/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at compile (/home/david/Repos/tagprobot/node_modules/babel-register/lib/node.js:103:45)
at loader (/home/david/Repos/tagprobot/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/home/david/Repos/tagprobot/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
not ok 1 no plan found
not ok 2 no assertions found
⨯ fail 2
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tagprobot@1.0.0 test: `babel-tape-runner test/**/*.js | faucet`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tagprobot@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/david/.npm/_logs/2017-09-02T21_42_54_573Z-debug.log
@speedskater Are you using npm version [patch|minor|major] if so you can resolve this by issuing git push --tags. Otherwise this can be resolved by adding tags of vX.Y.Z corresponding to each release.
I'm trying to use the code on branch
version-1.1.0
, but it seems like installing from the git repository doesn't work forbabel-plugin-rewire
.Our
package.json
:Our
.babelrc
:Running our unit tests:
Reinstall
babel-plugin-rewire
through the git repository:Running tests again: