Skip to content

Commit ea4319e

Browse files
committed
Format Cypress default config
1 parent c376925 commit ea4319e

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

lib/cypress-rails/init.rb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
module CypressRails
22
class Init
33
DEFAULT_CONFIG = <<~CYPRESS_CONFIG
4-
const { defineConfig } = require('cypress')
4+
const { defineConfig } = require('cypress')
55
6-
module.exports = defineConfig({
7-
// setupNodeEvents can be defined in either
8-
// the e2e or component configuration
9-
e2e: {
10-
setupNodeEvents(on, config) {
11-
on('before:browser:launch', (browser = {}, launchOptions) => {
12-
/* ... */
13-
})
6+
module.exports = defineConfig({
7+
// setupNodeEvents can be defined in either
8+
// the e2e or component configuration
9+
e2e: {
10+
setupNodeEvents(on, config) {
11+
on('before:browser:launch', (browser = {}, launchOptions) => {
12+
/* ... */
13+
})
14+
},
1415
},
15-
},
16-
screenshotsFolder: "tmp/cypress_screenshots",
17-
videosFolder: "tmp/cypress_videos",
18-
trashAssetsBeforeRuns: false
19-
})
20-
16+
screenshotsFolder: "tmp/cypress_screenshots",
17+
videosFolder: "tmp/cypress_videos",
18+
trashAssetsBeforeRuns: false
19+
})
2120
CYPRESS_CONFIG
2221

2322
def call(dir = Dir.pwd)

0 commit comments

Comments
 (0)