fix: add v8 snapshot usage to cypress in cypress testing (#24860)

This commit is contained in:
Ryan Manuel
2022-12-08 00:04:37 -06:00
committed by GitHub
parent 79f743e1cf
commit c540284f50
27 changed files with 175 additions and 148 deletions
@@ -143,9 +143,9 @@ function integrityCheck (options) {
fileName: 'evalmachine.<anonymous>',
},
{
functionName: 'Module._extensions.<computed>',
functionName: 'Module2._extensions.<computed>',
// eslint-disable-next-line no-undef
fileName: [appPath, 'node_modules', 'bytenode', 'lib', 'index.js'].join(PATH_SEP),
fileName: [appPath, 'index.js'].join(PATH_SEP),
},
{
// eslint-disable-next-line no-undef
@@ -164,15 +164,6 @@ function integrityCheck (options) {
errorMessage: 'Integrity check failed for main index.js file',
})
validateFile({
// eslint-disable-next-line no-undef
filePath: [appPath, 'node_modules', 'bytenode', 'lib', 'index.js'].join(PATH_SEP),
crypto,
fs,
expectedHash: 'BYTENODE_HASH',
errorMessage: 'Integrity check failed for main bytenode.js file',
})
validateFile({
// eslint-disable-next-line no-undef
filePath: [appPath, 'packages', 'server', 'index.jsc'].join(PATH_SEP),