Skip to content

Commit

Permalink
Add failing test for vitest-dev#1962
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmccurdy committed Sep 6, 2022
1 parent 69d55bc commit 3bbd90b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/core/test/dom.test.ts
@@ -1,5 +1,6 @@
/**
* @vitest-environment jsdom
* @vitest-environment-options { "url": "https://example.com/" }
*/

/* eslint-disable vars-on-top */
Expand All @@ -16,6 +17,7 @@ it('jsdom', () => {
expect(top).toBeDefined()
expect(parent).toBeDefined()
expect(self).toBeDefined()
expect(location.href).toBe('https://example.com/')

const dom = document.createElement('a')
dom.href = 'https://vitest.dev'
Expand Down

0 comments on commit 3bbd90b

Please sign in to comment.