Skip to content

Avoid recompiling every test that uses local Vm #8857

Open
@DaniPopes

Description

@DaniPopes

Component

Forge

Describe the feature you would like

many tests in forge now use

    prj.wipe_contracts();
    prj.insert_ds_test();
    prj.insert_vm();
    prj.clear();

this clears the cache of the pre-compiled test project, which ruins the purpose of the forgetest_init macro, as well as making tests depend on ds-test which we have removed from forge-std long ago

we can surgically replace the forge-std Vm with the local one to have access to all the cheatcodes, or some other way so that we don't have to do this

cc @grandizzy

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions