8000 refactor: change default test directory name to "tests" · Ddddaemon/vue-cli@64b4515 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64b4515

Browse files
committed
refactor: change default test directory name to "tests"
BREAKING CHANGE: all tests are now located in "tests" instead of "test" close vuejs#877
1 parent 88726a3 commit 64b4515

File tree

23 files changed

+32
-32
lines changed

23 files changed

+32
-32
lines changed

packages/@vue/cli-plugin-e2e-cypress/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Cypress offers a rich interactive interface for running E2E tests, but currently
3737

3838
## Configuration
3939

40-
We've pre-configured Cypress to place most of the e2e testing related files under `<projectRoot>/test/e2e`. You can also check out [how to configure Cypress via `cypress.json`](https://docs.cypress.io/guides/references/configuration.html#Options).
40+
We've pre-configured Cypress to place most of the e2e testing related files under `<projectRoot>/tests/e2e`. You can also check out [how to configure Cypress via `cypress.json`](https://docs.cypress.io/guides/references/configuration.html#Options).
4141

4242
## Installing in an Already Created Project
4343

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"pluginsFile": "test/e2e/plugins/index.js"
2+
"pluginsFile": "tests/e2e/plugins/index.js"
33
}

packages/@vue/cli-plugin-e2e-cypress/generator/template/test/e2e/plugins/index.js

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// https://docs.cypress.io/guides/guides/plugins-guide.html
2+
3+
module.exports = (on, config) => {
4+
return Object.assign({}, config, {
5+
fixturesFolder: 'tests/e2e/fixtures',
6+
integrationFolder: 'tests/e2e/specs',
7+
screenshotsFolder: 'tests/e2e/screenshots',
8+
videosFolder: 'tests/e2e/videos',
9+
supportFile: 'tests/e2e/support/index.js'
10+
})
11+
}

0 commit comments

Comments
 (0)
0