Skip to content

Commit 38ca926

Browse files
author
Kent C. Dodds
authored
jest-environment-jsdom: add ? to options parameter
As suggested by @thymikee in jestjs#5227 (comment)
1 parent e776fdd commit 38ca926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/jest-environment-jsdom/src

packages/jest-environment-jsdom/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class JSDOMEnvironment {
2323
errorEventListener: ?Function;
2424
moduleMocker: ?ModuleMocker;
2525

26-
constructor(config: ProjectConfig, options: EnvironmentOptions = {}) {
26+
constructor(config: ProjectConfig, options?: EnvironmentOptions = {}) {
2727
this.dom = new JSDOM(
2828
'<!DOCTYPE html>',
2929
Object.assign(

0 commit comments

Comments
 (0)