Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixing test #1148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.project
package-lock.json
node_modules
lib-cov
*.swp
.idea
*.iml
.nyc_output/*
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
REPORTER = spec
MOCHA = node_modules/.bin/mocha
NYC = node_modules/.bin/nyc

test:
@NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER)

test-colors:
@NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER) --colors

test-cov: test/coverage.html

test/coverage.html: lib-cov
@FLUENTFFMPEG_COV=1 NODE_ENV=test $(MOCHA) --require should --reporter html-cov > test/coverage.html

lib-cov:
@rm -fr ./$@
@jscoverage lib $@
test-cov:
@FLUENTFFMPEG_COV=1 NODE_ENV=test ${NYC} $(MOCHA) --require should

publish:
@npm version patch -m "version bump"
Expand All @@ -26,4 +21,4 @@ JSDOC_CONF = tools/jsdoc-conf.json
doc:
$(JSDOC) --configure $(JSDOC_CONF)

.PHONY: test test-cov lib-cov test-colors publish doc
.PHONY: test test-cov test-colors publish doc
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require(`./lib${process.env.FLUENTFFMPEG_COV ? '-cov' : ''}/fluent-ffmpeg`);
module.exports = require(`./lib/fluent-ffmpeg`);
Loading