Skip to content

Commit

Permalink
Use modern HTML5 <!DOCTYPE>, as discussed in jestjs#3299
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine authored and aaronabramov committed Aug 7, 2017
1 parent 3f6422d commit 2384e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-environment-jsdom/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JSDOMEnvironment {

constructor(config: ProjectConfig): void {
// lazy require
this.document = JSDom.jsdom(/* markup */ undefined, {
this.document = JSDom.jsdom('<!DOCTYPE html>', {
url: config.testURL,
});
const global = (this.global = this.document.defaultView);
Expand Down

0 comments on commit 2384e33

Please sign in to comment.