Skip to content

Commit

Permalink
Run all DateTimeFormat tests by default (#19)
Browse files Browse the repository at this point in the history
These were previously omitted because the tc39/proposal-temporal
reference code didn't provide a spec-compliant DateTimeFormat object.
Now (most of) those compliance issues have been fixed, let's run those
tests.
  • Loading branch information
ptomato authored Apr 30, 2024
1 parent bfaa5d7 commit 67e7a00
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,8 @@ export default function runTest262({
if (testGlobs.length === 0) {
[
path.resolve(testSubdirectory, '**/Temporal/**/*.js'),
// e.g. intl402/DateTimeFormat/prototype/format/temporal-objects-resolved-time-zone.js
path.resolve(testSubdirectory, 'intl402/**/*[tT]emporal*.js'),
// Intl tests related to time zones
// e.g. intl402/DateTimeFormat/timezone-case-insensitive.js
path.resolve(testSubdirectory, 'intl402/DateTimeFormat/**/*[zZ]one*.js'),
path.resolve(testSubdirectory, 'intl402/DateTimeFormat/**/*.js'),
path.resolve(testSubdirectory, 'intl402/Intl/DateTimeFormat/**/*.js'),
// "p*" is a workaround because there is no toTemporalInstant dir at this time
path.resolve(testSubdirectory, 'built-ins/Date/p*/toTemporalInstant/*.js')
].forEach((defaultGlob) => globResults.push(...globSync(defaultGlob, GLOB_OPTS)));
Expand Down

0 comments on commit 67e7a00

Please sign in to comment.