Skip to content

Commit

Permalink
test: use platform and node version in name
Browse files Browse the repository at this point in the history
To rule out the runner matrix causing problems
  • Loading branch information
wkillerud committed Nov 15, 2024
1 parent 5230bf3 commit 434ac7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"rimraf": "6.0.1",
"semantic-release": "24.0.0",
"tap": "18.8.0",
"typescript": "5.6.3",
"unique-slug": "4.0.0"
"typescript": "5.6.3"
}
}
7 changes: 6 additions & 1 deletion test/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
/* eslint-disable no-empty */

import { Writable, pipeline } from "node:stream";
import os from "node:os";
import { stream } from "@eik/common";
import slug from "unique-slug";
import tap from "tap";
import fs from "node:fs";

import Sink from "../lib/main.js";

function slug() {
var randomness = (Math.random().toString(16) + "0000000").slice(2, 10);
return `${os.platform()}/${process.versions.node}/${randomness}`;
}

// Ignore the value for "timestamp" field in the snapshots
tap.cleanSnapshot = (s) => {
const regex = /"timestamp": [0-9.]+,/gi;
Expand Down

0 comments on commit 434ac7e

Please sign in to comment.