Skip to content

Commit

Permalink
fix(path): another attempt at the path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jan 6, 2017
1 parent 6fe8220 commit c17cb3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
npm-debug.log
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const kebabCase = require('lodash.kebabcase')
const deburr = require('lodash.deburr')
const reject = require('lodash.reject')
const relative = require('path').join.bind(null, __dirname)

const cleanupFilename = s => kebabCase(deburr(s))

Expand All @@ -19,7 +18,9 @@ function writeFailedTestInfo ({testName, testError, testCommands}) {
// const runCmd = `npm run failed-test -- ${filename}`
// pass filename as environment variable

const runCmd = relative('..', 'on-failed.sh')
// for now assume we are running from the root of
// the project and the shell script is in node_modules
const runCmd = './node_modules/cypress-failed-log/on-failed.sh'
const options = {
failOnNonZeroExit: false,
env: {
Expand Down

0 comments on commit c17cb3b

Please sign in to comment.