Files
cypress/system-tests/test/issue_149_spec.js
Jessica Sachs a045e4f59a chore: move server e2e tests to system-tests (#16354)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-18 19:53:14 +00:00

24 lines
677 B
JavaScript

const { fs } = require('@packages/server/lib/util/fs')
const Fixtures = require('../lib/fixtures')
const systemTests = require('../lib/system-tests').default
describe('e2e issue 149', () => {
systemTests.setup()
// https://github.com/cypress-io/cypress/issues/149
it('failing', function () {
return systemTests.exec(this, {
spec: 'issue_149_spec.js',
snapshot: true,
expectedExitCode: 1,
})
.then(() => {
// the other test should have still run which should
// have created this file
return fs.readFileAsync(Fixtures.projectPath('e2e/foo.js'), 'utf8')
}).then((str) => {
expect(str).to.eq('bar')
})
})
})