Skip to content

Commit a546452

Browse files
committed
Added expose gc to run script
1 parent bd9efbd commit a546452

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ui-tests/cypress.config.sample.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ module.exports = defineConfig({
4646
logMemory() {
4747
if (global.gc) {
4848
global.gc();
49-
} else {
49+
}
50+
else {
5051
console.warn('Garbage collection is not exposed. Run node with --expose-gc');
5152
}
5253

ui-tests/cypress/e2e/dashboard/login/login.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Login', () => {
1616
loginHelpers.typeUsername(user.username);
1717
loginHelpers.typePassword(user.password);
1818
loginHelpers.clickLoginButton();
19-
cy.task('logMemory');
19+
cy.task('logMemory');
2020
navigationHelpers.isNavigatedToDashboard();
2121
cy.task('logMemory');
2222
});

ui-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "e2e testing",
55
"author": "Countly, Inc.",
66
"scripts": {
7-
"cy:run:dashboard": "node ./cypress/fixtures/generators/generateFixtures.js && CYPRESS_NO_COMMAND_LOG=1 cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --headless --no-runner-ui --browser chrome",
7+
"cy:run:dashboard": "node ./cypress/fixtures/generators/generateFixtures.js && node --expose-gc ./node_modules/.bin/cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/dashboard/**/*.cy.js --headless --no-runner-ui --browser chrome",
88
"cy:run:onboarding": "cypress run --record --key 00000000-0000-0000-0000-000000000000 --spec **/onboarding/**/*.cy.js --headless --no-runner-ui --browser chrome"
99
},
1010
"license": "ISC",

0 commit comments

Comments
 (0)