Skip to content

Commit

Permalink
disable windows build test
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 30, 2023
1 parent 704a70a commit d2bce03
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions test/build.test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import assert from "assert";
import { type Scenario, mapDirectory, runScenarios } from "./scenarios";

const filesOwnName = await mapDirectory("test/fixtures/scenario_build_app");
// Windows tests are disabled
if (process.platform !== 'win32') {

const scenarios: Scenario[] = [
{
files: filesOwnName,
commands: ["jspm build --config rollup-config.mjs"],
validationFn: async (files) => {
const build = files.get("build.js");
assert(!!build);
assert(!build.includes('import { add } from "./utils.js"'));
assert(build.includes("const add = (num1, num2) => num1 + num2"));
const filesOwnName = await mapDirectory("test/fixtures/scenario_build_app");

const scenarios: Scenario[] = [
{
files: filesOwnName,
commands: ["jspm build --config rollup-config.mjs"],
validationFn: async (files) => {
const build = files.get("build.js");
assert(!!build);
assert(!build.includes('import { add } from "./utils.js"'));
assert(build.includes("const add = (num1, num2) => num1 + num2"));
},
},
},
];
];

runScenarios(scenarios);

runScenarios(scenarios);
}

0 comments on commit d2bce03

Please sign in to comment.