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

ESLint setup for Jest #99

Closed
IlCallo opened this issue Jul 12, 2019 · 0 comments · Fixed by #117
Closed

ESLint setup for Jest #99

IlCallo opened this issue Jul 12, 2019 · 0 comments · Fixed by #117

Comments

@IlCallo
Copy link
Member

IlCallo commented Jul 12, 2019

Same as #95 but for Jest, we should rely on https://github.com/jest-community/eslint-plugin-jest.
.eslintrc.js file should be added automatically inside test/jest folder upon initialization.

Suggested ESLint configuration:

module.exports = {
  extends: [
    // Removes 'no-undef' lint errors for Jest global functions (`describe`, `it`, etc),
    //  add Jest-specific lint rules and Jest plugin
    // See https://github.com/jest-community/eslint-plugin-jest#recommended
    'plugin:jest/recommended',
    // Uncomment following line to apply style rules
    // 'plugin:jest/style',
  ],
};
IlCallo added a commit to IlCallo/quasar-testing that referenced this issue Apr 28, 2020
IlCallo added a commit that referenced this issue Sep 11, 2020
* feat(jest): add proper Jest ESLint plugin

Closes #99

* feat(jest): git-ignore coverage reports folder

* style: make linter happy with some small fixes

* feat(cypress): add proper Cypress ESLint plugin

Closes #95

* feat(jest): support TypeScript testing

* chore: update deps

* v1.1.0-beta.0

* v1.0.0-beta.11

* chore(unit-jest): update deps

* fix(unit-jest): ignore .d.ts files from coverage analysis

* v1.1.0-beta.2

* feat(e2e-cypress): add TypeScript option

* v1.0.0-beta.12

* chore(cypress): update deps

* feat(cypress-ts): use TS files for support files too

* chore(e2e-cypress): bump dependencies

* feat(e2e-cypress): add typings for custom commands

* feat(e2e-cypress): add README for NPM page

* v1.0.0-beta.13

* chore(jest): update deps

* feat(jest): mark "script" option as enabled by default

* refactor(jest): remove unused import

* refactor(jest): rephrase CSS mock file

* feat(jest): improve mount helpers

* docs(jest): add readme

* fix(jest): remove useless import

* feat(cypress): sync dataCy command signature with get

* docs(jest): fix typos

* feat(jest): update helpers

* v1.1.0-beta.3

* docs(jest): update outdated `mount.type` comment example

* fix(jest): use async/await for click trigger

* fix(jest): allow Quasar to install on multiple Vue instances

* feat(jest): migrate helpers to TS and expose them from the package

* v1.1.0-beta.4

* v1.1.0-beta.5

* fix(jest): process localVue even when provided by the user

* chore(jest): update dependencies

* v1.1.0-beta.6

* docs(cypress): add comments over example code

* feat(jest): add types in tsconfig only when needed

* feat(cypress): apply cypress types only into tests folder

* chore(cypress): add deploy scripts

* v2.0.0-beta.1

* v1.1.0-beta.7

* chore(cypress): upgrade Cypress to v5

* v2.0.0-beta.2

* docs(cypress): update docs

* docs: reference to inner packages README when possible

* docs: update root README and remove pre-v1 references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant