19 Commits

Author SHA1 Message Date
Allen
4dacae53fa fix: update cypress api link to the latest (#6926) 2022-01-13 14:55:54 +08:00
Haoqun Jiang
95a9b8cd7c feat!: update cypress to 8.3 and require it to be a peer dependency (#6662) 2021-09-01 17:15:12 +08:00
Cédric Exbrayat
1ae53e5c95 fix: comment eslint disable in cypress config (#4910)
The current cypress config has a global eslint-disable:

typescript
```
/* eslint-disable import/no-extraneous-dependencies, global-require, arrow-body-style */
// const webpack = require('@cypress/webpack-preprocessor')
```

But this assumes that `eslint-import-plugin` is present, whereas this is only true when the selected preset is the Airbnb one.
In other cases, this fails `yarn lint` right away with:

```
error: Definition for rule 'import/no-extraneous-dependencies' was not found (import/no-extraneous-dependencies) at tests/e2e/plugins/index.js```

Even if using the Airbnb preset, the comment does not have any effect, as, by default, the `require` call is commented.

This commit now splits the rules disabling in two:

- one commented for the people using Airbnb and who will uncomment the require call below, as it is only useful for them.
- one activated that disables `arrow-body-style` as it will fail the linting for people using Airbnb preset with the current config.
2020-01-03 14:55:19 +08:00
Haoqun Jiang
0fc972ed1a fix: make cypress config file compatible with eslint-config-airbnb rules 2018-12-31 22:20:42 +08:00
Cédric Exbrayat
e4e151b238 fix: remove webpack-preprocessor from cypress config (#2904)
* test: add cypress test for TS

* fix: remove webpack-preprocessor from cypress config

Removes the `@cypress/webpack-preprocessor` from the generated cypress configuration, as it leads to several issues regarding file watching, headless mode and TS support.

Fixes #2903
2018-11-12 14:44:46 +08:00
Haoqun Jiang
4e90afe189 fix: missing comma 2018-10-11 19:57:49 +08:00
Haoqun Jiang
35e8d8326f fix: fix eslint errors when using airbnb config
closes #2667
2018-10-07 18:05:48 +08:00
Haoqun Jiang
0045196151 refactor: @cypress/webpack-preprocessor should be a peer dep 2018-10-07 18:05:47 +08:00
Haoqun Jiang
5d2033d981 chore: remove trailing comma [ci skip] 2018-09-25 15:17:39 +08:00
Haoqun Jiang
bd32daa2db fix: add webpack-preprocessor, fixes babel 7 compatibility issues
closes #2538
closes #2465
2018-09-24 21:24:41 +08:00
Evan You
1d7b81b176 chore: generate eslintrc.js for cypress 2018-07-28 23:11:05 -04:00
Evan You
69ebd800a2 refactor: rename test commands
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register
"test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now
register "test:e2e" with optional `--headless` flag instead of "e2e" and
"e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e".

close #876, close #878
2018-05-01 18:15:25 -04:00
Chris
49677ba0be chore: update Cypress test.js test description (#1011) 2018-04-25 16:44:22 -04:00
Evan You
64b4515731 refactor: change default test directory name to "tests"
BREAKING CHANGE: all tests are now located in "tests" instead of "test"
close #877
2018-02-28 18:07:06 -05:00
Chris Fritz
46358ebbab fix(cypress): upgrade cypress and properly set base url (#879) 2018-02-24 19:54:13 -05:00
Evan You
d391e4741e fix: eslint + airbnb compat with TypeScript 2018-02-16 11:38:39 +01:00
Evan You
9410442138 feat: use eslint-plugin-cypress
close #815
2018-02-12 15:56:52 -05:00
Evan You
313533d84e fix: fix eslint errors when using airbnb + cypress 2018-02-03 14:18:13 -05:00
Evan You
8a3ac7e170 feat: e2e cypress 2018-01-24 21:59:29 -05:00