Skip to content

Commit 78e3ca4

Browse files
committed
only add sorted .js file to 'update all tests' action
1 parent d16e8f8 commit 78e3ca4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app_modules/_getAllTestFiles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ let getAllTestFiles = function() {
1111

1212
walker.on('file', function(root, stat, next) {
1313
let currentFile = stat.name
14-
if(currentFile.charAt(0) === "_" && currentFile.charAt(1) !== "_") {
14+
if(currentFile.charAt(0) === "_" && currentFile.charAt(1) !== "_" && currentFile.slice(-2) === "js") {
1515
currentFile = currentFile.slice(0, -3)
1616
currentFile = root + '\/' + currentFile
1717
currentFile = currentFile.replace(/\\/g, "/")
1818
currentFile = currentFile.replace(/\.\/bivariate_data\/test_scripts\//g, "")
1919
allTestFileNames.push(currentFile)
2020
}
21+
allTestFileNames.sort()
2122
next()
2223
})
2324

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bivariate",
3-
"version": "0.14.5",
3+
"version": "0.14.6",
44
"description": "An opinionated interface for writing, running, and saving BackstopJS tests",
55
"keywords": [
66
"BackstopJS",

0 commit comments

Comments
 (0)