Skip to content

Commit

Permalink
Refactor file write operations in test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 21, 2023
1 parent 862500e commit f15e4f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/extractor/tests/watch/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const virtualCSSFilepath = path.join(__dirname, '.virtual/master.css')
let child: SpawndChildProcess

beforeAll(() => {
fs.writeFileSync(HTMLFilepath, originHTMLText)
fs.writeFileSync(optionsFilepath, originOptionsText)
fs.writeFileSync(configFilepath, originConfigText)
fs.writeFileSync(HTMLFilepath, originHTMLText, { flag: 'w+' })
fs.writeFileSync(optionsFilepath, originOptionsText, { flag: 'w+' })
fs.writeFileSync(configFilepath, originConfigText, { flag: 'w+' })

child = spawnd('tsx ../../../css/src/bin extract -w', { shell: true, cwd: __dirname })
}, 120000)
Expand Down

0 comments on commit f15e4f7

Please sign in to comment.