Skip to content

Commit 4671c4b

Browse files
committedApr 1, 2020
Use tmp directory for files written during tests
- Add spec/tmp directory with .gitkeep file to indicate the folder is intentional - Add the folder contents to .gitignore - Use this folder to output the sourcemap file during bin tests. This file is a sideeffect of the main test
1 parent e46baa1 commit 4671c4b

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ lib/handlebars/compiler/parser.js
1717
/coverage/
1818
/dist/
1919
/integration-testing/*/dist/
20+
/spec/tmp/*

‎spec/artifacts/source.map.amd.txt

-1
This file was deleted.

‎spec/expected/source.map.amd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎spec/tmp/.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory is ignored in .gitignore. It can be used to write temporary files during tests.

‎tasks/test-bin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const testCases = [
155155
'-N',
156156
'test',
157157
'--map',
158-
'./spec/artifacts/source.map.amd.txt'
158+
'./spec/tmp/source.map.amd.txt'
159159
],
160160
outputLocation: 'stdout',
161161
expectedOutputSpec: './spec/expected/source.map.amd.js'

0 commit comments

Comments
 (0)
Please sign in to comment.