-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from 2gis/TILES-5081-tests
Tiles 5081 tests
- Loading branch information
Showing
21 changed files
with
11,189 additions
and
2,520 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Prettier check | ||
|
||
on: push | ||
|
||
jobs: | ||
prettier-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm ci | ||
- run: npm run prettier |
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,24 @@ | ||
name: Test deck2gisLayer plugin | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm ci | ||
- run: npm run test:screenshots | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() }} | ||
with: | ||
path: test/screenshots/__screenshots__/**/__diff_output__/*.png | ||
retention-days: 5 |
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,27 @@ | ||
const suite = process.env.TEST_SUITE || 'screenshots'; | ||
|
||
const suiteParams = { | ||
screenshots: { | ||
globalSetup: './test/global-setup.js', | ||
globalTeardown: './test/global-teardown.js', | ||
maxWorkers: 5, | ||
maxConcurrency: 3, | ||
testTimeout: 50000, | ||
testEnvironment: 'node', | ||
testMatch: ['**/test/screenshots/**/*.ts'], | ||
}, | ||
}; | ||
|
||
module.exports = { | ||
preset: 'ts-jest', | ||
globals: { | ||
'ts-jest': { | ||
diagnostics: { | ||
// Игнорируем воргинги про esModuleInterop, которые нам чинить, кажется не требуется | ||
// потому что в тестах импорты работают без проблем. | ||
ignoreCodes: [151001], | ||
}, | ||
}, | ||
}, | ||
...suiteParams[suite], | ||
}; |
Oops, something went wrong.