-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ts-jest from 29.0.3 to 29.0.5 (#115)
- Loading branch information
Showing
20 changed files
with
7,028 additions
and
3,231 deletions.
There are no files selected for viewing
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
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,28 @@ | ||
--- | ||
name: Update license | ||
|
||
on: | ||
schedule: | ||
- cron: '0 5 1 1 *' | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: FantasticFiasco/action-update-license-year@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
assignees: ${{ github.repository_owner }} | ||
labels: enhancement | ||
prTitle: Update license copyright year to {{currentYear}} | ||
prBody: | | ||
## Changelog | ||
- Update license copyright year to {{currentYear}} | ||
--- | ||
Powered by [FantasticFiasco/action-update-license-year](https://github.com/FantasticFiasco/action-update-license-year) |
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,4 @@ | ||
[allowlist] | ||
paths = [ | ||
'''.yarn/.*''' | ||
] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,11 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs | ||
spec: "https://mskelton.dev/yarn-outdated/v2" | ||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs | ||
spec: "@yarnpkg/plugin-version" | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.4.1.cjs |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"name": "translation-action", | ||
"version": "1.4.14", | ||
"version": "1.4.15", | ||
"description": "This GitHub action translates any text from any language to any language.", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "ncc build -m src/index.ts", | ||
"lint": "eslint --ext ts src", | ||
"postinstall": "pre-commit install", | ||
"test": "jest --config=jest.config.json --coverage" | ||
}, | ||
"repository": { | ||
|
@@ -31,17 +30,18 @@ | |
"yandex-translate": "2.1.3" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "29.2.5", | ||
"@typescript-eslint/eslint-plugin": "5.48.0", | ||
"@typescript-eslint/parser": "5.48.0", | ||
"@vercel/ncc": "0.36.0", | ||
"@types/jest": "29.4.0", | ||
"@typescript-eslint/eslint-plugin": "5.51.0", | ||
"@typescript-eslint/parser": "5.51.0", | ||
"@vercel/ncc": "0.36.1", | ||
"dotenv": "16.0.3", | ||
"eslint": "8.31.0", | ||
"eslint": "8.34.0", | ||
"eslint-config-google": "0.14.0", | ||
"jest": "29.3.1", | ||
"jest-circus": "29.3.1", | ||
"jest": "29.4.2", | ||
"jest-circus": "29.4.2", | ||
"mocha-param": "2.0.1", | ||
"ts-jest": "29.0.3", | ||
"typescript": "4.9.4" | ||
} | ||
"ts-jest": "29.0.5", | ||
"typescript": "4.9.5" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
import LinguaToolsProvider from '../../providers/LinguaToolsProvider'; | ||
import ProviderBase from '../../providers/ProviderBase'; | ||
import LinguaToolsProvider from '../../providers/LinguaToolsProvider' | ||
import ProviderBase from '../../providers/ProviderBase' | ||
|
||
describe('LinguaToolsProvider', () => { | ||
test('should get correct translation', async () => { | ||
const provider: ProviderBase = new LinguaToolsProvider(); | ||
const translations = await provider.translate('Evening', 'en-de'); | ||
expect(translations.length).toEqual(1); | ||
expect(translations[0]).toEqual('Abend'); | ||
}); | ||
test.skip('should get correct translation', async () => { | ||
const provider: ProviderBase = new LinguaToolsProvider() | ||
const translations = await provider.translate('Evening', 'en-de') | ||
expect(translations.length).toEqual(1) | ||
expect(translations[0]).toEqual('Abend') | ||
}) | ||
|
||
test('should fail because of invalid lang', async () => { | ||
const provider: ProviderBase = new LinguaToolsProvider(); | ||
test.skip('should fail because of invalid lang', async () => { | ||
const provider: ProviderBase = new LinguaToolsProvider() | ||
try { | ||
await provider.translate('Evening', 'abc123'); | ||
await provider.translate('Evening', 'abc123') | ||
} catch (e) { | ||
expect(e).toBeTruthy(); | ||
return; | ||
if ((<any>e).status && (<any>e).status === 404) { | ||
throw e | ||
} | ||
expect(e).toBeTruthy() | ||
return | ||
} | ||
fail(); | ||
}); | ||
}); | ||
throw new Error('Request should fail due to unknown lang') | ||
}) | ||
}) |
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
Oops, something went wrong.