Skip to content

Commit

Permalink
ci: support running test from custom node/core branches
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 27, 2024
1 parent a11765c commit 2c54ab4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ module.exports.addBrowserConsole = function (page) {

module.exports.coreTagEqualToOrAfter = function (targetTag) {
const currTag = process.env.SUPERTOKENS_CORE_TAG;
if (currTag === undefined || currTag === targetTag || (!currTag.startsWith("dev-v") && targetTag.startsWith("v"))) {
if (
currTag === undefined ||
currTag === targetTag ||
(!currTag.startsWith("dev-v") && !targetTag.startsWith("v"))
) {
return true;
}

Expand Down

0 comments on commit 2c54ab4

Please sign in to comment.