Skip to content

Commit

Permalink
update file paths & names to match new config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaffrepaul committed Jan 13, 2022
1 parent c95627e commit 1b32fa7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/blogs__application-actions/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TODO_ITEM_THREE,
TODO_ITEM_TWO,
toggle,
} from './utils'
} from './utils.cy'

describe('TodoMVC', function () {
beforeEach(function () {
Expand Down
4 changes: 2 additions & 2 deletions examples/fundamentals__custom-browsers/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { defineConfig } = require("cypress")

const tasks = require("./tasks")
const tasks = require("./cypress/plugins/tasks")

module.exports = defineConfig({
supportFile: false,
fixturesFolder: false,
e2e: {
setupNodeEvents(on, config) {
setupNodeEvents (on, config) {
on("task", tasks)

// only filter browsers if we are passed a list - this way
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = defineConfig({
// `config` is the resolved Cypress config
async setupNodeEvents(on, config) {
// let"s load the CSV file
const filename = path.join(__dirname, "users.csv")
const filename = path.join(__dirname, "cypress/plugins/users.csv")

console.log("loading file", filename)
const text = fs.readFileSync(filename, "utf8")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="cypress" />

import { seconds, testTimeout } from './timeout'
import { seconds, testTimeout } from './timeout.cy'

describe('Global timeout of 3 seconds', () => {
// Let's try to time limit _every test_
Expand Down
2 changes: 1 addition & 1 deletion examples/logging-in__using-app-code/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = defineConfig({
const options = {
// send in the options from your webpack.config.js, so it works the same
// as your app's code
webpackOptions: require("../../webpack.config"),
webpackOptions: require("./webpack.config"),
watchOptions: {},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
const options = {
webpackOptions: require("../../webpack.config"),
webpackOptions: require("./webpack.config"),
}

on("file:preprocessor", wp(options))
Expand Down
4 changes: 2 additions & 2 deletions examples/testing-dom__download/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const { stripIndent } = require("common-tags")
const globby = require("globby")
const { rmdir } = require("fs")

const { readExcelFile } = require("./read-excel")
const { readPdf } = require("./read-pdf")
const { readExcelFile } = require("./cypress/plugins/read-excel")
const { readPdf } = require("./cypress/plugins/read-pdf")

module.exports = defineConfig({
fixturesFolder: false,
Expand Down

0 comments on commit 1b32fa7

Please sign in to comment.