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:
@@ -17,3 +17,4 @@ lib/handlebars/compiler/parser.js
|
|||||||
/coverage/
|
/coverage/
|
||||||
/dist/
|
/dist/
|
||||||
/integration-testing/*/dist/
|
/integration-testing/*/dist/
|
||||||
|
/spec/tmp/*
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"sources":["test"],"names":["compiler","main","container","depth0","helpers","partials","data","useData"],"mappings":"kHAAA,CAAAA,SAAA,CAAA,EAAA,YAAAC,KAAA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAA,MAAA,gBAAAC,SAAA"}
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
define(["handlebars.runtime"],function(e){var t=(e=e.default).template;return(e.templates=e.templates||{}).test=t({compiler:[8,">= 4.3.0"],main:function(e,t,a,n,i){return"<div>1</div>"},useData:!0})});
|
define(["handlebars.runtime"],function(e){var t=(e=e.default).template;return(e.templates=e.templates||{}).test=t({compiler:[8,">= 4.3.0"],main:function(e,t,a,n,i){return"<div>1</div>"},useData:!0})});
|
||||||
//# sourceMappingURL=./spec/artifacts/source.map.amd.txt
|
//# sourceMappingURL=./spec/tmp/source.map.amd.txt
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This directory is ignored in .gitignore. It can be used to write temporary files during tests.
|
||||||
+1
-1
@@ -155,7 +155,7 @@ const testCases = [
|
|||||||
'-N',
|
'-N',
|
||||||
'test',
|
'test',
|
||||||
'--map',
|
'--map',
|
||||||
'./spec/artifacts/source.map.amd.txt'
|
'./spec/tmp/source.map.amd.txt'
|
||||||
],
|
],
|
||||||
outputLocation: 'stdout',
|
outputLocation: 'stdout',
|
||||||
expectedOutputSpec: './spec/expected/source.map.amd.js'
|
expectedOutputSpec: './spec/expected/source.map.amd.js'
|
||||||
|
|||||||
Reference in New Issue
Block a user