Skip to content

Commit

Permalink
decaffeinate: Run post-processing cleanups on exit.coffee and 12 othe…
Browse files Browse the repository at this point in the history
…r files
  • Loading branch information
sainthkh committed Dec 24, 2019
1 parent f691166 commit c183fbb
Show file tree
Hide file tree
Showing 16 changed files with 3,953 additions and 3,622 deletions.
4 changes: 2 additions & 2 deletions packages/server/__snapshots__/8_reporters_spec.coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Require stack:
- lib/reporter.coffee
- lib/project.js
- lib/modes/run.js
- lib/modes/index.coffee
- lib/cypress.coffee
- lib/modes/index.js
- lib/cypress.js
- index.js
-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,77 @@
exports['lib/scaffold .support creates supportFolder and commands.js and index.js when supportFolder does not exist 1'] = `
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add("login", (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
`

exports['lib/scaffold .support creates supportFolder and commands.js and index.js when supportFolder does not exist 2'] = `
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
`

exports['lib/scaffold .plugins creates pluginsFile when pluginsFolder does not exist 1'] = `
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
module.exports = (on, config) => {
// <backtick>on<backtick> is used to hook into various events Cypress emits
// <backtick>config<backtick> is the resolved Cypress config
}
`

exports['lib/scaffold .fileTree returns tree-like structure of scaffolded 1'] = [
{
"name": "tests",
Expand Down Expand Up @@ -285,59 +359,6 @@ exports['lib/scaffold .fileTree leaves out support if configured to false 1'] =
}
]

exports['lib/scaffold .support creates supportFolder and commands.js and index.js when supportFolder does not exist 1'] = `
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add("login", (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
`

exports['lib/scaffold .support creates supportFolder and commands.js and index.js when supportFolder does not exist 2'] = `
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
`

exports['lib/scaffold .fileTree leaves out plugins if configured to false 1'] = [
{
"name": "tests",
Expand Down Expand Up @@ -426,24 +447,3 @@ exports['lib/scaffold .fileTree leaves out plugins if configured to false 1'] =
]
}
]

exports['lib/scaffold .plugins creates pluginsFile when pluginsFolder does not exist 1'] = `
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
module.exports = (on, config) => {
// <backtick>on<backtick> is used to hook into various events Cypress emits
// <backtick>config<backtick> is the resolved Cypress config
}
`

0 comments on commit c183fbb

Please sign in to comment.