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
This commit is contained in:
Hannah Wolfe
2020-04-01 18:04:14 +01:00
parent e46baa1fe2
commit 4671c4b383
5 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ const testCases = [
'-N',
'test',
'--map',
'./spec/artifacts/source.map.amd.txt'
'./spec/tmp/source.map.amd.txt'
],
outputLocation: 'stdout',
expectedOutputSpec: './spec/expected/source.map.amd.js'