Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Unit tests broken #22

Closed
ryaa opened this issue Jan 3, 2017 · 1 comment
Closed

Unit tests broken #22

ryaa opened this issue Jan 3, 2017 · 1 comment

Comments

@ryaa
Copy link

ryaa commented Jan 3, 2017

Hi,

I cloned and installed everything according to quick start instructions

# Required dependecies (on Mac Os also install ios-sim and ios-deploy)
npm i -g cordova ionic yarn
gem install scss_lint

# Clone the repo --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/marcoturi/ionic2-boilerplate.git

# Change directory
cd ionic2-boilerplate

# Install project dependencies
yarn
npm run post-install

# Launch ionic serve
npm run dev

When i tried to run unit tests I got the below error

Alexs-MacBook-Pro:ionic2-boilerplate alexryltsov$ npm run test

> ionic2-boilerplate@0.17.0 test /Users/alexryltsov/Git/ionic2-boilerplate
> bnr test

running better-npm-run in /Users/alexryltsov/Git/ionic2-boilerplate
Executing script: test

to be executed: karma start
03 01 2017 17:39:34.900:ERROR [plugin]: Error during loading "/Users/alexryltsov/Git/ionic2-boilerplate/node_modules/karma-phantomjs-launcher" plugin:
  Path must be a string. Received null

START:

webpack: bundle is now VALID.
webpack: bundle is now INVALID.
@marcoturi
Copy link
Owner

marcoturi commented Jan 3, 2017

I'm not able to re-produce this issue. However after same search i found this. TL;DR; Removing the yarn cache (~/Library/Caches/Yarn on MacOS, ~/.cache/yarn on Linux) and deleting the node_modules folder fix this error. Let me know if you still encounter this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants