Skip to content

Commit

Permalink
enable justInTimeCompile by default [run ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Nov 18, 2024
1 parent 7a38e36 commit 5bb9ebc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/config/__snapshots__/index.spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports['config/src/index .getDefaultValues returns list of public config keys 1
'fixturesFolder': 'cypress/fixtures',
'excludeSpecPattern': '*.hot-update.js',
'includeShadowDom': false,
'justInTimeCompile': false,
'justInTimeCompile': true,
'keystrokeDelay': 0,
'modifyObstructiveCode': true,
'numTestsKeptInMemory': 50,
Expand Down Expand Up @@ -138,7 +138,7 @@ exports['config/src/index .getDefaultValues returns list of public config keys f
'fixturesFolder': 'cypress/fixtures',
'excludeSpecPattern': '*.hot-update.js',
'includeShadowDom': false,
'justInTimeCompile': false,
'justInTimeCompile': true,
'keystrokeDelay': 0,
'modifyObstructiveCode': true,
'numTestsKeptInMemory': 50,
Expand Down
2 changes: 1 addition & 1 deletion packages/config/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const driverConfigOptions: Array<DriverConfigOption> = [
requireRestartOnChange: 'server',
}, {
name: 'justInTimeCompile',
defaultValue: false,
defaultValue: true,
validation: validate.isBoolean,
requireRestartOnChange: 'server',
}, {
Expand Down
4 changes: 2 additions & 2 deletions packages/config/test/project/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ describe('config/src/project/utils', () => {
fixturesFolder: { value: 'cypress/fixtures', from: 'default' },
hosts: { value: null, from: 'default' },
includeShadowDom: { value: false, from: 'default' },
justInTimeCompile: { value: false, from: 'default' },
justInTimeCompile: { value: true, from: 'default' },
isInteractive: { value: true, from: 'default' },
keystrokeDelay: { value: 0, from: 'default' },
modifyObstructiveCode: { value: true, from: 'default' },
Expand Down Expand Up @@ -1202,7 +1202,7 @@ describe('config/src/project/utils', () => {
fixturesFolder: { value: 'cypress/fixtures', from: 'default' },
hosts: { value: null, from: 'default' },
includeShadowDom: { value: false, from: 'default' },
justInTimeCompile: { value: false, from: 'default' },
justInTimeCompile: { value: true, from: 'default' },
isInteractive: { value: true, from: 'default' },
keystrokeDelay: { value: 0, from: 'default' },
modifyObstructiveCode: { value: true, from: 'default' },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/errors/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ export const AllCypressErrors = {
EXPERIMENTAL_JIT_COMPILE_REMOVED: () => {
return errTemplate`\
The ${fmt.highlight(`experimentalJustInTimeCompile`)} configuration option was removed in ${fmt.cypressVersion(`14.0.0`)}.
A new ${fmt.highlightSecondary(`justInTimeCompile`)} configuration option is available and is now ${fmt.highlightSecondary(`false`)} by default.
A new ${fmt.highlightSecondary(`justInTimeCompile`)} configuration option is available and is now ${fmt.highlightSecondary(`true`)} by default.
You can safely remove this option from your config.`
},
// TODO: verify configFile is absolute path
Expand Down
2 changes: 1 addition & 1 deletion system-tests/__snapshots__/results_spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports['module api and after:run results'] = `
"experimentalMemoryManagement": false,
"experimentalModifyObstructiveThirdPartyCode": false,
"experimentalSkipDomainInjection": null,
"justInTimeCompile": false,
"justInTimeCompile": true,
"experimentalOriginDependencies": false,
"experimentalSourceRewriting": false,
"experimentalSingleTabRunMode": false,
Expand Down

0 comments on commit 5bb9ebc

Please sign in to comment.