You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{assertInstanceOf}from'jsr:@std/assert';// <-- this has changedimport{handler}from'./handler.ts';Deno.test('handler',async()=>{constresponse=awaithandler(newRequest('http://localhost:3000'));assertInstanceOf(response,Response,'handler did not return an instance of a Response');});
I am sure there are plenty of other places updates are needed, including the deno.json file itself (I don't think importMap are a thing anymore btw).
The text was updated successfully, but these errors were encountered:
Just looking at this and it seems the templates' code are producing pre deno 2.0 code.
For example:
packages/deno/src/generators/application/files/framework-none/main.ts__template__
packages/deno/src/generators/application/files/framework-none/handler.test.ts__template__
I am sure there are plenty of other places updates are needed, including the
deno.json
file itself (I don't thinkimportMap
are a thing anymore btw).The text was updated successfully, but these errors were encountered: