Solana: Could not able to run tests in anchor. Main error is anchor test command is not finding .ts file
Oshchyk launch test on the anchor in Solan
OBSENT
The problem, with which you are the table, is connected to the doughs fixed on your Solana Blockchain, using a yoke skeleton. In the part of the application, the application is activated by the test, using the anchoring anchoring command, is organized with a scoop, which indicates the task of dissipating the file.
Blood resting
- As a rule, the Solana techno ended.
- Command Comand ICarah : Receptional that anchoring is used by coomating just for the compilation and the start of the test. The changes are usually `
anchor compilat-test
. Change
in the factual way to your test file.
- Check the configuration of Solana Solhint :
SOLHINT – This is a tool that helps you swing in your code. To set a solhint for best licorice, the sunset of follow -ups -up:
– Send the solhint.json
in your radical catalog of your project.
– In the solhint.json
file, they indicate the road to the Sophint file and the installation of the right images.
For example:
`Json
{
"Pravil": ["
"Way": "/usr/bin/solhint"
}
4.
Bash
Anchor compile-test/home/ahmed/Development/Your- x/Your- xs
`
- Fight what your test is ruining on the right
:
After the launch of the supreme doughs, it is possible to demonstrate that it is ruined by outgoing magazines or magazines for any scoop, labels with "Typeeerror: the unnatural dispersion of the" .S "file.
6.
Provage is no it's
- Receive that you established the unusual exposure in the radical catalog of your project.
- Check the name of the conflict - Liblice between the rules of the Solhint and the other instruments configurations (for example, NPM or Predatory).
- revenge that test files are not syntactic science, but calls` Typeerror.
The follow -Up of these phases, you are able to grind the scoop, the conjunction with the compilation and start of the doughs on your only blockchain with the use of the yoke.
Bir yanıt yazın