Skip to content

Commit 3b1af85

Browse files
authored
tests(long-term-caching): fix test setup(#33526)
1 parent 76f0224 commit 3b1af85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration-tests/long-term-caching/__tests__/long-term-caching.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ describe(`long term caching`, () => {
5959
const indexPath = `${rootPath}/src/pages/index.js`
6060
const data = await readFile(indexPath, `utf8`)
6161

62-
const import1 = `import gray from "gray-percentage"`
62+
// unused imports are removed, so we need to use it somehow
63+
const import1 = `import gray from "gray-percentage"\nconsole.log(gray)`
6364

6465
const modifiedData = `${import1}\n${data}`
6566
await writeFile(`${pagesPath}/index.js`, modifiedData)

0 commit comments

Comments
 (0)