FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: pass appPath to the env from karma.conf.js by Fatme · Pull Request #5071 · NativeScript/nativescript-cli · GitHub

fix: pass appPath to the env from karma.conf.js - #5071

Merged
Fatme merged 1 commit into
masterfrom
fatme/fix-unit-testing
Oct 14, 2019
Merged

fix: pass appPath to the env from karma.conf.js#5071
Fatme merged 1 commit into
masterfrom
fatme/fix-unit-testing

Conversation

Fatme commented Oct 14, 2019

Copy link
Copy Markdown
Contributor

Two different webpack compilations are started on tns test command - the one from karma-webpack and the second one from nativescript-dev-webpack. As the karma's webpack doesn't provide appPath to the env and there is a hardcoded appPath inside webpack.config.js (to src for example), it works only with that hardcoded path.

Rel to: #5070

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

cla-bot Bot added the cla: yes label Oct 14, 2019
Two different webpack compilations are started on `tns test` command - the one from `karma-webpack` and the second one from `nativescript-dev-webpack`. As the karma's webpack doesn't provide appPath to the env and there is a hardcoded `appPath` inside `webpack.config.js` (to `src` for example), it works only with that hardcoded path.

Rel to: #5070
Fatme force-pushed the fatme/fix-unit-testing branch from 1f2231c to a54ba74 Compare October 14, 2019 06:34

Fatme commented Oct 14, 2019

Copy link
Copy Markdown
Contributor Author

test cli-tests

Fatme merged commit 0c79359 into master Oct 14, 2019
Fatme deleted the fatme/fix-unit-testing branch October 14, 2019 10:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL