We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 000ce0a commit 7363d2aCopy full SHA for 7363d2a
src/__tests__/parse-test.js
@@ -73,7 +73,7 @@ describe('parse', () => {
73
}
74
});
75
76
- it('supports custom parserOptions', () => {
+ it('supports custom parserOptions with plugins', () => {
77
expect(() =>
78
parse('const chained: Type = 1;', () => {}, null, {
79
parserOptions: {
@@ -85,4 +85,14 @@ describe('parse', () => {
85
}),
86
).toThrowError(/.*Unexpected token \(1:13\).*/);
87
88
+
89
+ it('supports custom parserOptions without plugins', () => {
90
+ expect(() =>
91
+ parse('const chained: Type = 1;', () => {}, null, {
92
+ parserOptions: {
93
+ allowSuperOutsideMethod: true,
94
+ },
95
+ }),
96
+ ).toThrowError(ERROR_MISSING_DEFINITION);
97
+ });
98
0 commit comments