Skip to content

Commit

Permalink
Added node to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jwartofsky-yext committed Oct 16, 2023
1 parent 4aeb162 commit f9f68ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/pages/scripts/install_and_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "path";
import fs from "fs";
import * as child_process from "child_process";
import path from "node:path";
import fs from "node:fs";
import * as child_process from "node:child_process";

// Gets the path to the packaged version of PagesJS
const latestPath = path.resolve("latest");
Expand All @@ -10,11 +10,11 @@ const packagePath = path.resolve(
);

// Iterate through sdks, install local pages package, and run playwright
const sdks = fs.readdirSync(`../../jstest/sdks`);
const sdks = fs.readdirSync(path.resolve(`../../jstest/sdks`));
sdks.forEach((sdk) => {
console.log(`Testing ${sdk}..`);
const cwd = {
cwd: `../../jstest/sdks/${sdk}`,
cwd: path.resolve(`../../jstest/sdks/${sdk}`),
};
console.log(`npm install @yext/pages ${packagePath}`);
console.log(child_process.execSync("npm -v && node -v"));
Expand Down

0 comments on commit f9f68ee

Please sign in to comment.