-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tests, remove old dependencies (#103)
* fix: tests, remove old dependencies * chore: update gh action * chore: update publish * chore: use pnpm cache
- Loading branch information
1 parent
d7bb11f
commit 9fef561
Showing
10 changed files
with
3,649 additions
and
18,025 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"vcs": { | ||
"clientKind": "git", | ||
"enabled": true, | ||
"useIgnoreFile": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": false | ||
} | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"ignore": [], | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 120 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single", | ||
"semicolons": "asNeeded" | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"indentStyle": "space" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { test } = require('node:test') | ||
const assert = require('node:assert') | ||
const { glob } = require('node:fs') | ||
|
||
const langFiles = require('./index') | ||
|
||
glob('*.lang', (err, matches) => { | ||
if (err) { | ||
console.error(err) | ||
return | ||
} | ||
const localeCount = matches.length | ||
|
||
test(`should contain ${localeCount} languages`, () => { | ||
assert.equal(Object.keys(langFiles).length, localeCount) | ||
}) | ||
|
||
test('should contain specific languages', () => { | ||
const expectedLocales = matches.map((lang) => lang.substring(0, lang.indexOf('.'))) | ||
|
||
for (const lang of expectedLocales) { | ||
assert.equal(Object.hasOwn(langFiles, lang), true) | ||
} | ||
}) | ||
}) |
Oops, something went wrong.