diff --git a/islands/ReportTable.tsx b/islands/ReportTable.tsx
index ad2881a..f5f97d9 100644
--- a/islands/ReportTable.tsx
+++ b/islands/ReportTable.tsx
@@ -30,11 +30,9 @@ function ExpandIcon({ expanded }: { expanded: boolean }) {
function CategorySummary({
report,
testNames,
- showDetails,
}: {
report: TestReport | undefined;
testNames: string[];
- showDetails: boolean;
}) {
const rate = getRateForSubset(report, testNames);
if (!rate) {
@@ -50,16 +48,14 @@ function CategorySummary({
{(rate.pass / rate.total * 100).toFixed(2)}%
- {showDetails && (
-
- {rate.pass}/{rate.total} passing
- {fail > 0 && (
-
- ({fail} fail)
-
- )}
-
- )}
+
+ {rate.pass}/{rate.total} passing
+ {fail > 0 && (
+
+ ({fail} fail)
+
+ )}
+
);
}
@@ -200,21 +196,18 @@ export function ReportTable(props: { class?: string; report: DayReport }) {
|
|
@@ -360,6 +353,39 @@ function getShortTestName(testName: string): string {
return testName.replace(/^[^/]*\//, "");
}
+function CopyIcon() {
+ return (
+
+ );
+}
+
+function CheckIcon() {
+ return (
+
+ );
+}
+
function CopyableTestName({ testName }: { testName: string }) {
const shortName = getShortTestName(testName);
const [copied, copy] = useCopyState(shortName);
@@ -370,13 +396,11 @@ function CopyableTestName({ testName }: { testName: string }) {
e.stopPropagation();
copy();
}}
- class="hover:text-blue-500 hover:dark:text-blue-400 cursor-pointer"
+ class="hover:text-blue-500 hover:dark:text-blue-400 cursor-pointer inline-flex items-center"
title={copied ? "Copied!" : `Click to copy: ${shortName}`}
>
{testName}
- {copied && (
- copied!
- )}
+ {copied ? : }
);
}
@@ -385,15 +409,10 @@ function CommandTooltip(
props: { path: string; nodeVersion?: string; useNodeTest?: boolean },
) {
const [useDev, setUseDev] = useState(false);
- const denoPath = useDev ? "./target/debug/deno" : "deno";
- const denoSubcommand = props.useNodeTest ? "test" : "run";
- const command0 =
- `NODE_TEST_KNOWN_GLOBALS=0 NODE_SKIP_FLAG_CHECK=1 ${denoPath} ${denoSubcommand} -A --unstable-bare-node-builtins --unstable-node-globals --unstable-detect-cjs --quiet tests/node_compat/runner/suite/test/${props.path}`;
- const command1 =
- `${denoPath} -A ./tools/node_compat_tests.js --filter ${props.path}`;
+ const testName = getShortTestName(props.path);
+ const command0 = `./x test-compat ${testName}`;
const [copied0, copy0] = useCopyState(command0);
- const [copied1, copy1] = useCopyState(command1);
- const [pathCopied, copyPath] = useCopyState(props.path);
+
useEffect(() => {
if (localStorage["useDevDeno"] === "true") {
setUseDev(true);
@@ -418,18 +437,6 @@ function CommandTooltip(
You can run this test with the command below ():
-
-
- {command1}
-
-
- Or, without using wrapper script (