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

Commit f6f9251

Browse files
committed
test(e2e): Move utils to a support folder
1 parent 5b46757 commit f6f9251

14 files changed

Lines changed: 28 additions & 13 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- feat(#78): Add alerts router
1414
### Changed
1515
- chore(deps): Update dependencies
16+
- test(e2e): Move utils to a support folder
1617
### Fixed
1718
### Removed
1819

test/e2e/about-api.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010

11-
const { startServer, stopServer, request } = require("./utils");
11+
const { startServer, stopServer, request } = require("./support/utils");
1212
const { version } = require("../../package.json");
1313

1414
describe("about api", () => {

test/e2e/behaviors-api.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010

11-
const { startServer, stopServer, request } = require("./utils");
11+
const { startServer, stopServer, request } = require("./support/utils");
1212

1313
describe("behaviors api", () => {
1414
let server;

test/e2e/change-behavior.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010

11-
const { startServer, stopServer, request } = require("./utils");
11+
const { startServer, stopServer, request } = require("./support/utils");
1212

1313
describe("API for changing current behavior", () => {
1414
let server;

test/e2e/deprecated-change-behavior.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const {
1414
request,
1515
deprecatedChangeBehavior,
1616
deprecatedGetBehaviors,
17-
} = require("./utils");
17+
} = require("./support/utils");
1818

1919
describe("deprecated API for changing current behavior", () => {
2020
let server;

test/e2e/deprecated-core-events.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const {
1717
fixturesFolder,
1818
wait,
1919
CliRunner,
20-
} = require("./utils");
20+
} = require("./support/utils");
2121

2222
describe("Plugin listening to core events", () => {
2323
let cli;

test/e2e/fixtures-api.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010

11-
const { startServer, stopServer, request } = require("./utils");
11+
const { startServer, stopServer, request } = require("./support/utils");
1212

1313
describe("fixtures api", () => {
1414
let server;

test/e2e/fixtures/start-files-watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require("path");
2-
const { startServer } = require("../utils");
2+
const { startServer } = require("../support/utils");
33

44
startServer(path.resolve(__dirname, "files-watch"), {
55
watch: true,

test/e2e/plugin-options.spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010
const path = require("path");
11-
const { startServer, stopServer, request, CliRunner, wait, fixturesFolder } = require("./utils");
11+
const {
12+
startServer,
13+
stopServer,
14+
request,
15+
CliRunner,
16+
wait,
17+
fixturesFolder,
18+
} = require("./support/utils");
1219

1320
describe("plugin options", () => {
1421
let server;

test/e2e/settings-api.spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ http://www.apache.org/licenses/LICENSE-2.0
88
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
99
*/
1010

11-
const { startServer, stopServer, request, fixturesFolder, TimeCounter, wait } = require("./utils");
11+
const {
12+
startServer,
13+
stopServer,
14+
request,
15+
fixturesFolder,
16+
TimeCounter,
17+
wait,
18+
} = require("./support/utils");
1219

1320
describe("settings api", () => {
1421
let server;

0 commit comments

Comments
 (0)