mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Revert npm bin command
This commit is contained in:
@@ -23,7 +23,7 @@ const CONTENT_OPTIONS = {maxBuffer: 1024 * 500};
|
|||||||
const KARMA_TEST_COMMAND = 'karma start';
|
const KARMA_TEST_COMMAND = 'karma start';
|
||||||
const SERVER_SIDE_TEST_COMMAND = 'mocha test/server_side';
|
const SERVER_SIDE_TEST_COMMAND = 'mocha test/server_side';
|
||||||
|
|
||||||
const ISTANBUL_TEST_COMMAND = `istanbul cover -i "website/src/**" --dir coverage/api $(npm bin)/${LEGACY_API_TEST_COMMAND}`;
|
const ISTANBUL_TEST_COMMAND = `istanbul cover -i "website/src/**" --dir coverage/api ./node_modules/.bin/${LEGACY_API_TEST_COMMAND}`;
|
||||||
|
|
||||||
/* Helper methods for reporting test summary */
|
/* Helper methods for reporting test summary */
|
||||||
let testResults = [];
|
let testResults = [];
|
||||||
@@ -33,7 +33,7 @@ let testCount = (stdout, regexp) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let testBin = (string) => {
|
let testBin = (string) => {
|
||||||
return `NODE_ENV=testing $(npm bin)/${string}`;
|
return `NODE_ENV=testing ./node_modules/.bin/${string}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
gulp.task('test:prepare:mongo', (cb) => {
|
gulp.task('test:prepare:mongo', (cb) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user