Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
The npm package @denofill/testing receives a total of 2 weekly downloads. As such, @denofill/testing popularity was classified as not popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.