Skip to content

Commit

Permalink
test(vscode): fix creation of spurious folders when compiling vscode …
Browse files Browse the repository at this point in the history
…tests

When fable is run on a folder with the cwd in a parent folder, for some reason when it finds .cs files it looks for those files relative to the cwd.  When not found, the folders they are in get created, leading to strange spurious folders being created - specifically, the single-root folder in the main vscode/contextive folder, due to the .cs files in the test fixtures.
  • Loading branch information
chrissimon-au committed Nov 15, 2023
1 parent 9bbaaf5 commit 0cca81d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vscode/contextive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "fable src && webpack",
"watch": "fable watch src --runWatch webpack",
"package": "fable src && webpack --mode production --devtool hidden-source-map",
"compile-tests": "fable test && webpack -c webpack.test.config.js",
"watch-tests": "fable watch test --runWatch webpack -c webpack.test.config.js",
"compile": "cd src && fable && cd .. && webpack",
"watch": "cd src && fable watch --runWatch webpack",
"package": "cd src && fable && cd .. && webpack --mode production --devtool hidden-source-map",
"compile-tests": "cd test && fable && cd .. && webpack -c webpack.test.config.js",
"watch-tests": "cd test && fable watch --runWatch webpack -c webpack.test.config.js",
"pretest": "npm run compile && npm run compile-tests",
"test-single-root": "cross-env MOCHA_FGREP=\"Single-Root\" node ./out/runTest.js",
"test-multi-root": "cross-env MOCHA_FGREP=\"Multi-Root\" node ./out/runTest.js",
Expand Down

0 comments on commit 0cca81d

Please sign in to comment.