@@ -7,6 +7,9 @@ import readmeExampleIssue from "./fixtures/readme-example/issue.js";
77import fullExampleIssue from "./fixtures/full-example/issue.js" ;
88import mismatchedParsingIssue from "./fixtures/mismatched-parsing/issue.js" ;
99import multipleParagraphsIssue from "./fixtures/multiple-paragraphs/issue.js" ;
10+ import paragraphConfusingHashesIssue from "./fixtures/paragraph-confusing-####/issue.js" ;
11+ import paragraphIgnoreCodeblockIssue from "./fixtures/paragraph-ignore-```/issue.js" ;
12+ import paragraphIgnoreCodeblockShIssue from "./fixtures/paragraph-ignore-```sh/issue.js" ;
1013
1114function loadJson ( path ) {
1215 return JSON . parse ( readFileSync ( path , "utf-8" ) ) ;
@@ -185,7 +188,7 @@ it("multiple paragraphs", () => {
185188} ) ;
186189
187190it ( "paragraph with confusing ####" , ( ) => {
188- const expectedOutput = require ( "./fixtures/paragraph-confusing-####/expected.json" ) ;
191+ const expectedOutput = loadJson ( "./fixtures/paragraph-confusing-####/expected.json" ) ;
189192 const expectedOutputJson = JSON . stringify ( expectedOutput , null , 2 ) ;
190193
191194 // mock ENV
@@ -194,7 +197,7 @@ it("paragraph with confusing ####", () => {
194197 } ;
195198
196199 // mock event payload
197- const eventPayload = require ( "./fixtures/paragraph-confusing-####/issue" ) ;
200+ const eventPayload = paragraphConfusingHashesIssue ;
198201
199202 // mock fs
200203 const fs = {
@@ -224,7 +227,7 @@ it("paragraph with confusing ####", () => {
224227} ) ;
225228
226229it ( "paragraph with ``` section" , ( ) => {
227- const expectedOutput = require ( "./fixtures/paragraph-ignore-```/expected.json" ) ;
230+ const expectedOutput = loadJson ( "./fixtures/paragraph-ignore-```/expected.json" ) ;
228231 const expectedOutputJson = JSON . stringify ( expectedOutput , null , 2 ) ;
229232
230233 // mock ENV
@@ -233,7 +236,7 @@ it("paragraph with ``` section", () => {
233236 } ;
234237
235238 // mock event payload
236- const eventPayload = require ( "./fixtures/paragraph-ignore-```/issue" ) ;
239+ const eventPayload = paragraphIgnoreCodeblockIssue ;
237240
238241 // mock fs
239242 const fs = {
@@ -263,7 +266,7 @@ it("paragraph with ``` section", () => {
263266} ) ;
264267
265268it ( "paragraph with ```sh section" , ( ) => {
266- const expectedOutput = require ( "./fixtures/paragraph-ignore-```sh/expected.json" ) ;
269+ const expectedOutput = loadJson ( "./fixtures/paragraph-ignore-```sh/expected.json" ) ;
267270 const expectedOutputJson = JSON . stringify ( expectedOutput , null , 2 ) ;
268271
269272 // mock ENV
@@ -272,7 +275,7 @@ it("paragraph with ```sh section", () => {
272275 } ;
273276
274277 // mock event payload
275- const eventPayload = require ( "./fixtures/paragraph-ignore-```sh/issue" ) ;
278+ const eventPayload = paragraphIgnoreCodeblockShIssue ;
276279
277280 // mock fs
278281 const fs = {
0 commit comments