Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default template fails to run tests #682

Open
sboukortt opened this issue Jan 22, 2024 · 1 comment
Open

Default template fails to run tests #682

sboukortt opened this issue Jan 22, 2024 · 1 comment

Comments

@sboukortt
Copy link

(The binary is from yesterday.)

$ mint version
Mint 0.18.0-devel
$ mint init example
Mint - Initializing a new project
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Creating directory: example
⚙ Writing initial files:
  ➔ assets
    ➔ favicon.png
    ➔ head.html
    ➔ style.css
  ➔ source
    ➔ Info.mint
    ➔ Link.mint
    ➔ Logo.mint
    ➔ logo.svg
    ➔ Main.mint
  ➔ tests
    ➔ Main.mint
  ➔ mint.json
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All done in 11.013ms!
$ cd example
$ mint test
Mint - Running Tests
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Ensuring dependencies... 606μs
⚙ Compiling tests...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

░ TYPE ERROR ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

I could not find a variable, function or property with the name: with

Here is the relevant code snippet:

┌─┬ tests/Main.mint:3:5 ───────────────────────────────────────────────────────┐
│1│ suite "Main" {                                                             │
│2│   test "Greets Mint" {                                                     │
│3│     with Test.Html {                                                       │
│4│       <Main/>                                                              │
│5│       |> start()                                                           │
│6│       |> assertTextOf("a", "Learn Mint")                                   │
│7│     }                                                                      │
└─┴────────────────────────────────────────────────────────────────────────────┘

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
There was an error, exiting...

Did something change in the way that Test.Html should be imported?

@sboukortt
Copy link
Author

sboukortt commented Jan 22, 2024

In mint.json, it also has name at the top level instead of inside application, and so manifest.webmanifest is generated with an empty name.

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

No branches or pull requests

1 participant