Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Fix jest test.ts Reference Error and create ./out directory for wasm file in package.json #200

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marvinmednick
Copy link

@marvinmednick marvinmednick commented Dec 27, 2021

Corrected a Runtime Error (ReferenceError) encountered when running yarn test per example (from https://docs.near.org/docs/tutorials/contracts/cross-contract-calls)
Issue appear to be a stray line left in the file to variable that isn't defined or used elsewhere.

Also adjusted package.json to add a postbuild step to crate the default directory that near deploy expects (./out) copy the contract.wasm into it as main.asm (default name) {similar to what I've seen in other examples}

…sm which is where 'near deploy' expects by default
… jasmine that

did not seem be defined or used to be used anywhere. Jest tests now pass.
@marvinmednick
Copy link
Author

Reopening after cleaning my comments/description

@marvinmednick
Copy link
Author

Fixes issue Yarn jest fails to run with a Reference Error #201

@marvinmednick marvinmednick changed the title Mm bugfix Fix jest test.ts Reference Error and create out directory for wasm file in package.json Dec 27, 2021
@marvinmednick marvinmednick changed the title Fix jest test.ts Reference Error and create out directory for wasm file in package.json Fix jest test.ts Reference Error and create ./out directory for wasm file in package.json Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants