Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test native on-chain pragram checking-accounts failed #367

Open
tltanlintl opened this issue Mar 29, 2025 · 0 comments
Open

test native on-chain pragram checking-accounts failed #367

tltanlintl opened this issue Mar 29, 2025 · 0 comments

Comments

@tltanlintl
Copy link

I use how to fix "ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "ts-mocha" not found" and run

cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target

solana program deploy program/target/checking_accounts_program.so

yarn test

I get this output

root@f8862c566fe4:/dev_solana/program-examples/basics/checking-accounts/native# RUST_BACKTRACE=1 && yarn test

yarn run v1.22.22

warning package.json: No license field

warning ../../../../package.json: No license field

$ ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts

(node:187034) ExperimentalWarning: Type Stripping is an experimental feature and might change at any time

(Use node --trace-warnings ... to show where the warning was created)

(node:187034) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///dev_solana/program-examples/basics/checking-accounts/native/tests/test.ts is not specified and it doesn't parse as CommonJS.

Reparsing as ES module because module syntax was detected. This incurs a performance overhead.

To eliminate this warning, add "type": "module" to /dev_solana/program-examples/basics/checking-accounts/native/package.json.

[2025-03-29T08:59:33.453386492Z WARN solana_program_test] No SBF shared objects found.

thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/ index.crates.io-6f17d22bba15001f/solana-program-test-1.18.0/src/lib.rs:716:17:

Program file data not available for checking_accounts_program (11111111111111111111111111111112)

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

0 passing (1ms)

how do I fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant