Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Chore/merge tests #248

Merged
merged 59 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
364ee54
export everything from vtl
koca Jun 7, 2020
b1dbd30
test(aspect-ratio): add tests for padding bottom
koca Jun 7, 2020
77eefca
chore: fix lint errs
koca Jun 13, 2020
8c438d0
test(aspect-ratio): refactor and fix AspectRatio tests
koca Jul 1, 2020
eb768bf
test(alert): add tests for alert icons and refactor
koca Jul 1, 2020
ea6011f
test(alert-dialog): refactor alert dialog tests
koca Jul 1, 2020
d1814b7
feat(test-utils): add getElementStyles to test utils
koca Jul 1, 2020
afaa8bc
fix(avatar): render AvatarName if no src provided and fix all test cases
koca Jul 2, 2020
b2b706d
test(avatar-group): fix AvatarGroup tests
koca Jul 2, 2020
7edd2ec
test(bread-crumb): refactor Breadcrump tests
koca Jul 2, 2020
5e8f58e
test(button): refactor button tests
koca Jul 2, 2020
83e9a99
chore: add .jsconfig for better code completion support in vscode
koca Jul 2, 2020
7809979
chore: add eslint testing library plugin
koca Jul 2, 2020
8a3a590
test(button-group): remove unnecessary test in ButtonGroup
koca Jul 2, 2020
5bcc4d5
test(avatar): remove unused attrs
koca Jul 2, 2020
97807ad
test(accordion): add shift+tab tests for accordion
koca Jul 4, 2020
3c2400d
test(avatar+avatar-group): add comments for the future and one tick i…
koca Jul 4, 2020
5cdb5af
test(badge): remove unnecessary test
koca Jul 4, 2020
0037cb9
test(Box): refactor box tests
koca Jul 4, 2020
2bf0f5e
chore: remove unused screen
koca Jul 4, 2020
e689731
chore: fix eslint errors (husky didnt check for some reason)
koca Jul 4, 2020
068420c
test(checkbox): refactor checkbox tests
koca Jul 6, 2020
7b3d85f
test(checkbox-group): refactor CheckboxGroup tests
koca Jul 6, 2020
d14721c
test(circular-progress): refactor circular progress
koca Jul 6, 2020
a77f8f3
test(close-button): refactor close button tests
koca Jul 6, 2020
725f822
test(code): refactor to screen
koca Jul 6, 2020
1af9a07
test(controlbox): refactor use screen
koca Jul 6, 2020
3aa7a15
test(drawer): refactor drawer tests
koca Jul 6, 2020
470ec73
test(editable): refactor use screen
koca Jul 6, 2020
5edf979
test(flex): refactor use screen
koca Jul 6, 2020
70e9ae2
test(icon-button): refactor use screen
koca Jul 6, 2020
979bb01
test(image): add tests for Image component and fix onerror
koca Jul 6, 2020
e988316
test(input): add tests for input component and fix readonly
koca Jul 6, 2020
efd6965
test(list): add tests for List component
koca Jul 7, 2020
5349692
Merge branch 'feature/test-next' of https://github.com/chakra-ui/chak…
codebender828 Jul 12, 2020
961ce9f
chore: merge and resolve all tests form tests/next
codebender828 Jul 12, 2020
511f5ae
chore: added skipped test
codebender828 Jul 12, 2020
87b0afe
test(image+avatar+avatargroup): mock onload implementation
codebender828 Jul 12, 2020
22efab5
chore: removed unused comments
codebender828 Jul 12, 2020
abb48cd
test: removed obsolete snapshots
codebender828 Jul 12, 2020
1cf9673
ci: added workflow for other prs
codebender828 Jul 12, 2020
7a488ef
test(button-group): refactor use screen
koca Jul 12, 2020
2403331
test(divider): refactor use screen
koca Jul 12, 2020
92d5db7
test(form-control): refactor use screen
koca Jul 12, 2020
1ca10fb
test(modal): refactor use screen
koca Jul 12, 2020
1dd4c68
chore: fix eslint error no named exports
koca Jul 12, 2020
4ad841f
test(progress): refactor use screen
koca Jul 12, 2020
b58b5f7
test(pseudo-box): refactor use screen
koca Jul 12, 2020
a1fad2a
test(radio): refactor use screen
koca Jul 12, 2020
57dd80e
test(radio-button-group): refactor use screen
koca Jul 12, 2020
b3f4806
test(stack): refactor use screen
koca Jul 12, 2020
97a1349
test(stat): refactor use screen
koca Jul 12, 2020
99f38b2
test(switch): refactor use screen
koca Jul 12, 2020
a6cf7ef
test(tag): refactor use screen
koca Jul 12, 2020
2d8b646
test(text): refactor use screen
koca Jul 12, 2020
1d80cf4
chore: fix eslint error no named exports
koca Jul 12, 2020
dfbddfb
fix: update image src attr
codebender828 Jul 13, 2020
4903e14
Merge branch 'chore/merge-tests' of https://github.com/chakra-ui/chak…
codebender828 Jul 13, 2020
18e7863
test: update image snapshot
codebender828 Jul 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@ module.exports = {
env: {
node: true
},
'extends': [
plugins: ['testing-library'],
extends: [
'plugin:vue/essential',
'@vue/standard',
'@nuxtjs'
'@nuxtjs',
'plugin:testing-library/recommended',
'plugin:testing-library/vue'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'curly': 'off'
curly: 'off',
'testing-library/no-debug': 'error',
'testing-library/prefer-screen-queries': 'error',
'testing-library/await-fire-event': 'error'
},
parserOptions: {
parser: 'babel-eslint'
Expand All @@ -23,10 +29,7 @@ module.exports = {
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/*.{j,t}s?(x)'
],
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/*.{j,t}s?(x)'],
env: {
jest: true
}
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Test Components

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn bootstrap
- run: yarn lint
- run: yarn build --if-present
- run: yarn test
env:
CI: true
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
],
env: {
test: {
plugins: ['transform-es2015-modules-commonjs']
// plugins: ['transform-es2015-modules-commonjs']
}
}
}
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ module.exports = {
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
],
testEnvironmentOptions: { resources: 'usable' }
}
12 changes: 12 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"eslint-loader": "^3.0.3",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-testing-library": "^3.3.1",
"jest": "^25.1.0",
"prettier": "^1.19.1",
"rimraf": "^3.0.2",
Expand Down
Loading