Cargo tauri app missing package.json file

Hello all, I'm following the guide from Tauri web site. I used the command cargo create-tauri-app selecting the following options:

  • Project name: test
  • Frontend language: Rust (cargo)
  • UI template: Vanilla

I successfully developed and run the application, but I'm stuck on the part that relates to UI mocking. From my search, it turned out that a package.json root file is required to configure the test framework (for example Vitest, but I have no such file in my project.
If I select Typescript/Javascript as frontend language, then that file is created, but I want to use Rust, so, my question is: how can I mock the UI with such a project setup?
Thank you

You need a package.json if and only of you want to program your tests in javascript or typescript.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.