aria-ease 6.4.7 → 6.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  ContractReporter,
3
3
  closeSharedBrowser,
4
4
  contract_default
5
- } from "./chunk-TQBS54MM.js";
5
+ } from "./chunk-GFKAJHCS.js";
6
6
  import "./chunk-I2KLQ2HA.js";
7
7
 
8
8
  // src/accordion/src/makeAccordionAccessible/makeAccordionAccessible.ts
@@ -1539,7 +1539,7 @@ Error: ${error instanceof Error ? error.message : String(error)}`
1539
1539
  const devServerUrl = await checkDevServer(url);
1540
1540
  if (devServerUrl) {
1541
1541
  console.log(`\u{1F3AD} Running Playwright tests on ${devServerUrl}`);
1542
- const { runContractTestsPlaywright } = await import("./contractTestRunnerPlaywright-D57V4RSU.js");
1542
+ const { runContractTestsPlaywright } = await import("./contractTestRunnerPlaywright-7BCEDPZF.js");
1543
1543
  contract = await runContractTestsPlaywright(componentName, devServerUrl);
1544
1544
  } else {
1545
1545
  throw new Error(
@@ -1594,6 +1594,11 @@ ${violationDetails}
1594
1594
  return result;
1595
1595
  }
1596
1596
  var runTest = async () => {
1597
+ return {
1598
+ passes: [],
1599
+ failures: [],
1600
+ skipped: []
1601
+ };
1597
1602
  };
1598
1603
  if (typeof window === "undefined") {
1599
1604
  runTest = async () => {
@@ -1601,36 +1606,36 @@ if (typeof window === "undefined") {
1601
1606
  `);
1602
1607
  const { exec } = await import("child_process");
1603
1608
  const chalk = (await import("chalk")).default;
1604
- exec(
1605
- `npx vitest --run --reporter verbose`,
1606
- { cwd: process.cwd() },
1607
- async (error, stdout, stderr) => {
1608
- if (stdout) {
1609
+ return new Promise((resolve, reject) => {
1610
+ exec(
1611
+ `npx vitest --run --reporter verbose`,
1612
+ async (error, stdout, stderr) => {
1609
1613
  console.log(stdout);
1610
- }
1611
- if (stderr) {
1612
- console.error(stderr);
1613
- }
1614
- if (!error || error.code === 0) {
1615
- try {
1616
- const { displayBadgeInfo, promptAddBadge } = await import("./badgeHelper-RDOMCC6E.js");
1617
- displayBadgeInfo("component");
1618
- await promptAddBadge("component", process.cwd());
1619
- console.log(chalk.dim("\n" + "\u2500".repeat(60)));
1620
- console.log(chalk.cyan("\u{1F499} Found aria-ease helpful?"));
1621
- console.log(chalk.white(" \u2022 Star us on GitHub: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease"));
1622
- console.log(chalk.white(" \u2022 Share feedback: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease/discussions"));
1623
- console.log(chalk.dim("\u2500".repeat(60) + "\n"));
1624
- } catch (badgeError) {
1625
- console.error("Warning: Could not display badge prompt:", badgeError);
1614
+ if (stderr) console.error(stderr);
1615
+ const testsPassed = !error || error.code === 0;
1616
+ if (testsPassed) {
1617
+ try {
1618
+ const { displayBadgeInfo, promptAddBadge } = await import("./badgeHelper-RDOMCC6E.js");
1619
+ displayBadgeInfo("component");
1620
+ await promptAddBadge("component", process.cwd());
1621
+ console.log(chalk.dim("\n" + "\u2500".repeat(60)));
1622
+ console.log(chalk.cyan("\u{1F499} Found aria-ease helpful?"));
1623
+ console.log(chalk.white(" \u2022 Star us on GitHub: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease"));
1624
+ console.log(chalk.white(" \u2022 Share feedback: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease/discussions"));
1625
+ console.log(chalk.dim("\u2500".repeat(60) + "\n"));
1626
+ } catch (badgeError) {
1627
+ console.error("Warning: Could not display badge prompt:", badgeError);
1628
+ }
1629
+ resolve({ passes: [], failures: [], skipped: [] });
1630
+ process.exit(0);
1631
+ } else {
1632
+ const exitCode = error?.code || 1;
1633
+ reject(new Error(`Tests failed with code ${exitCode}`));
1634
+ process.exit(exitCode);
1626
1635
  }
1627
- process.exit(0);
1628
- } else {
1629
- const exitCode = error?.code || 1;
1630
- process.exit(exitCode);
1631
1636
  }
1632
- }
1633
- );
1637
+ );
1638
+ });
1634
1639
  };
1635
1640
  }
1636
1641
  async function cleanupTests() {
@@ -82,7 +82,7 @@ ${"\u2550".repeat(60)}`);
82
82
  failureMessage,
83
83
  isOptional: test.isOptional
84
84
  };
85
- if (status === "skip" && test.requiresBrowser) {
85
+ if (status === "skip") {
86
86
  result.skipReason = "Requires real browser (addEventListener events)";
87
87
  }
88
88
  this.dynamicResults.push(result);
@@ -188,7 +188,7 @@ ${"\u2550".repeat(60)}`);
188
188
  `);
189
189
  if (totalFailures === 0 && this.skipped === 0 && this.optionalSuggestions === 0) {
190
190
  this.log(`\u2705 All ${totalRun} tests passed!`);
191
- this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interaction \u2713`);
191
+ this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interactions \u2713`);
192
192
  } else if (totalFailures === 0) {
193
193
  this.log(`\u2705 ${totalPasses}/${totalRun} required tests passed`);
194
194
  if (this.skipped > 0) {
@@ -197,7 +197,7 @@ ${"\u2550".repeat(60)}`);
197
197
  if (this.optionalSuggestions > 0) {
198
198
  this.log(`\u{1F4A1} ${this.optionalSuggestions} optional enhancement${this.optionalSuggestions > 1 ? "s" : ""} suggested`);
199
199
  }
200
- this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interaction \u2713`);
200
+ this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interactions \u2713`);
201
201
  } else {
202
202
  this.log(`\u274C ${totalFailures} test${totalFailures > 1 ? "s" : ""} failed`);
203
203
  this.log(`\u2705 ${totalPasses} test${totalPasses > 1 ? "s" : ""} passed`);