deno.land / x / drash@v3.0.0-beta.2 / tests
This document outlines:
Compat tests assert compatibility in runtimes. They assert request flows using native APIs and polyfills provided by Drash.
You have Bun (latest v0.x) installed.
$ deno task test:compat:bun
You have Deno (latest v1.x) installed.
$ deno task test:compat:deno
deno task build:libs
.src
directory. Reason being we want the compat testing to include importing the modules that will be published to the npm registry.deno task build:libs
being used first.The tests are split by Node version in separate directories (e.g., node-v16.x
, node-v18.x
, etc.). When you run the Node compat tests, the directory that will be used will be based on the Node version you are using. For example, if you are using Node 16, then the node-v16.x
directory will be used and the node-v18.x
directory will be ignored.
Using nvm
(download it at https://github.com/nvm-sh/nvm) can make it easier for you to switch between Node versions to test in specific Node versions (e.g., nvm use 16
to use Node 16 or nvm use 18
to use Node 18).
$ yarn install
$ deno task build:all
$ deno task test:compat:node
Unit tests make assertions against Core, Standard, and Modules.
$ deno task test:unit
Version Info