Skip to content

Commit

Permalink
final cleanup of jest_link
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Jul 16, 2024
1 parent 6ba53d1 commit 04ba430
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/jest_link.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import { execSync } from 'child_process';
import { join, resolve } from 'path';

// TODO remove install and link after https://github.com/demergent-labs/azle/issues/1807 is resolved
// TODO remove linkAndInstallPatch after https://github.com/demergent-labs/azle/issues/1807 is resolved
export function linkAndInstallPatch(pathRelativeToAzle: string): void {
const examplesDir =
process.env.GITHUB_WORKSPACE ?? resolve(__dirname, '..');

console.log('examplesDir', examplesDir);

console.log(
'process.env.AZLE_END_TO_END_TEST_LINK_AZLE',
process.env.AZLE_END_TO_END_TEST_LINK_AZLE
);
execSync(`cd ${join(examplesDir, pathRelativeToAzle)} && npm install`);

if (process.env.AZLE_END_TO_END_TEST_LINK_AZLE !== 'false') {
// TODO do we even need to do this on release?
execSync(`cd ${join(examplesDir, pathRelativeToAzle)} && npm install`);
execSync(
`cd ${join(examplesDir, pathRelativeToAzle)} && npm link azle`
);
Expand Down

0 comments on commit 04ba430

Please sign in to comment.