mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-29 10:29:27 -06:00
* chore: migrate angular adapter to monorepo * fix: update angular tests to use @cypress/angular * update snapshots * update snapshots * update params * replace cypress-angular with @cypress/angular * make angular private * chore: deps * remove git keep * chore: update yarn.lock * add test
31 lines
621 B
JavaScript
31 lines
621 B
JavaScript
import 'zone.js/dist/zone'
|
|
|
|
// @ts-ignore
|
|
global.Mocha['__zone_patch__'] = false
|
|
import 'zone.js/dist/zone-testing'
|
|
import 'zone.js/dist/async-test'
|
|
import 'zone.js/dist/fake-async-test'
|
|
import 'zone.js/dist/long-stack-trace-zone'
|
|
import 'zone.js/dist/mocha-patch'
|
|
import { setupHooks } from '@cypress/mount-utils'
|
|
|
|
setupHooks()
|
|
|
|
beforeEach(() => {
|
|
const html = `
|
|
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<base href="/">
|
|
</head>
|
|
<body>
|
|
<root0 id="root"></root0>
|
|
</body>
|
|
`
|
|
// @ts-ignore
|
|
const document = cy.state('document')
|
|
|
|
document.write(html)
|
|
document.close()
|
|
})
|