Skip to content

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

Open
@tltanlintl

Description

@tltanlintl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tltanlintl

        Issue actions

          test native on-chain pragram checking-accounts failed · Issue #367 · solana-developers/program-examples