Skip to content

Commit

Permalink
fix(tests): fix ava running tests on wrong files
Browse files Browse the repository at this point in the history
After updating ava the tests were including files in the `generator` module which are templates and
not valud `.js` files. Configuring the `files` section in `ava.config.js` resolved the issue.
  • Loading branch information
dnlup committed Jun 7, 2019
1 parent fbf2aff commit 8999406
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 2 deletions.
62 changes: 60 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,60 @@
node_modules
__tests__/.data
# data produced by tests
tests/.data

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
5 changes: 5 additions & 0 deletions ava.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
files: [
'!generator/**/*.js'
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8999406

Please sign in to comment.