“TypeError: Illegal constructor” error when using FormData
I'm currently experimenting with the Deno test runner and have set up a simple test.
Or at least, I thought I had!
When running the test I get the following error:
This is the file in which the error occurs:
https://codeberg.org/stefanfrede/uncluttered/src/branch/feature/switch-to-deno-test/static/get-form-data.ts
This is the test file:
https://codeberg.org/stefanfrede/uncluttered/src/branch/feature/switch-to-deno-test/tests/async-forms.test.ts
The idea is to test whether my function returns the correct form values.
To be honest, I currently have no idea why this error occurs, so I would be very grateful for any suggestions on how to solve it.
Or at least, I thought I had!
When running the test I get the following error:
This is the file in which the error occurs:
https://codeberg.org/stefanfrede/uncluttered/src/branch/feature/switch-to-deno-test/static/get-form-data.ts
This is the test file:
https://codeberg.org/stefanfrede/uncluttered/src/branch/feature/switch-to-deno-test/tests/async-forms.test.ts
The idea is to test whether my function returns the correct form values.
To be honest, I currently have no idea why this error occurs, so I would be very grateful for any suggestions on how to solve it.
