Skip to content
Permalink
Browse files

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
  • Loading branch information
ErisDS committed Apr 1, 2020
1 parent e46baa1 commit 4671c4b38329d334164fd05334bcca3a531b8c35
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +0 −1 spec/artifacts/source.map.amd.txt
  3. +1 −1 spec/expected/source.map.amd.js
  4. +1 −0 spec/tmp/.gitkeep
  5. +1 −1 tasks/test-bin.js
@@ -17,3 +17,4 @@ lib/handlebars/compiler/parser.js
/coverage/
/dist/
/integration-testing/*/dist/
/spec/tmp/*

This file was deleted.

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1 @@
This directory is ignored in .gitignore. It can be used to write temporary files during tests.
@@ -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'

0 comments on commit 4671c4b

Please sign in to comment.
You can’t perform that action at this time.