Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@denofill/testing
Advanced tools
🧪 [Deno.test()
] and [Deno.bench()
] for anywhere
You can install this package using npm, pnpm, Yarn, or your other favorite npm package manager:
npm install @denofill/testing
You can import this package in Node.js, Deno, and the browser and it will Just
Work™. In Deno, you'll get a passthrough to the native Deno.test()
function,
while in Node.js and the browser you'll get a shim that implements the same API.
// If you set DENOFILL_TEST=1 in Node.js, this will run the tests. Otherwise,
// this will be a no-op.
import * as Deno from "@denofill/testing";
import assert from "node:assert";
Deno.test("1 + 2 = 3", () => {
assert.equal(1 + 2, 3);
});
<script>
// You can also manually do this in DevTools and reload the page.
sessionStorage.setItem("denofill_test", "1");
</script>
<script type="module">
import * as Deno from "https://esm.run/@denofill/testing";
import assert from "https://esm.run/@nodefill/assert";
Deno.test("1 + 2 = 3", () => {
assert.equal(1 + 2, 3);
});
</script>
⚠️ Even though it kinda looks like it, the Deno
import is not the real
Deno namespace object! It's only got two functions: Deno.test()
and
Deno.bench()
.
You can also use the shim CLI to run tests and benchmarks using tsx
:
denofilltest
denofillbench
Deno
namespace with other @denofill modules to build a custom Deno namespaceimport * as Deno1 from "@denofill/testing";
import * as Deno2 from "@denofill/http-server";
const Deno = { ...Deno1, ...Deno2 };
FAQs
🧪 Deno.test() and Deno.bench() for anywhere
We found that @denofill/testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.