Skip to content

Commit a4b281e

Browse files
committed
fix server tests
1 parent 36274e3 commit a4b281e

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

packages/server/test/integration/cypress_spec.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,6 @@ describe('lib/cypress', () => {
229229
delete globalThis['CY_TEST_MOCK']
230230
})
231231

232-
context('it sets process.env.CYPRESS on file load', () => {
233-
it('sets CYPRESS=true when Cypress runs', () => {
234-
expect(process.env['CYPRESS']).to.eq('true')
235-
})
236-
})
237-
238232
context('test browsers', () => {
239233
// sanity checks to make sure the browser objects we pass during tests
240234
// all pass the internal validation function

packages/server/test/spec_helper.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
/* eslint-disable no-console */
2-
// const { calculateCypressInternalEnv, configureLongStackTraces } = require('../lib/environment')
3-
4-
// // TODO: how necessary is this??? CYPRESS_INTERNAL_ENV is set to 'test so long stack traces are not enabled in the testing environment
5-
// process.env['CYPRESS_INTERNAL_ENV'] = calculateCypressInternalEnv()
6-
// configureLongStackTraces(process.env['CYPRESS_INTERNAL_ENV'])
7-
// // and CYPRESS is set to true shouldnt be needed for other tests
8-
// process.env['CYPRESS'] = 'true'
9-
102
const { enable, mockElectron } = require('./mockery_helper')
113

4+
const { configureLongStackTraces } = require('../lib/environment')
5+
6+
configureLongStackTraces()
127
const chai = require('chai')
138

149
chai.use(require('chai-subset'))

0 commit comments

Comments
 (0)