Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.

WIP: Closes 3. LF/3 Add travis.yml without tests coverage#14

Open
danieljust wants to merge 2 commits into
masterfrom
LF/3-setup-travis-ci
Open

WIP: Closes 3. LF/3 Add travis.yml without tests coverage#14
danieljust wants to merge 2 commits into
masterfrom
LF/3-setup-travis-ci

Conversation

@danieljust
Copy link
Copy Markdown
Contributor

No description provided.

@danieljust danieljust requested a review from maxmalov November 4, 2017 12:40
Comment thread package.json Outdated
"precommit": "lint-staged",
"prepush": "npm test"
"prepush": "npm test",
"ci": "lint-staged && npm test"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read about lint-staged and what it is actually doing

@danieljust danieljust force-pushed the LF/3-setup-travis-ci branch from 7ffb165 to af2ae03 Compare November 6, 2017 10:37
Comment thread package.json
"prepush": "npm test"
"prepush": "npm test",
"ci": "npm run lint && npm test",
"lint": "./node_modules/.bin/eslint ./* --fix",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint is already included in the ember test command

Comment thread showResults.js
@@ -0,0 +1,4 @@
/* eslint-disable no-undef */
/* eslint-disable no-console */
const parsedJSON = require('./coverage/coverage-summary.json');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add test-summary reporter instead of this dirty hack

Comment thread config/coverage.js
@@ -0,0 +1,3 @@
module.exports = {
excludes: ['./app/templates/*', '*/mirage/**/*']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you exclude them?

Comment thread .eslintignore
@@ -0,0 +1,10 @@
node_modules
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this, since ESLint is already included in the ember test command

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants