Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
My auction contract required doing some Metaplex metadata checks, so testing required creating an NFT just like they do in mainnet. However, your localnet doesn't come with the program deployed so you have to set that up yourself. Clone https://github.com/metaplex-foundation/metaplex-program-library and run anchor build inside the token-metadata directory. This will output a target/deploy/mpl_token_metadata.so binary that you can import into your project.
You should definitely write tests if you want to be a responsible coder. Anchor tests use mocha, so you should get familiar with the framework.