Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 5, 2024
1 parent eb36b26 commit 2d5f209
Show file tree
Hide file tree
Showing 7 changed files with 2,757 additions and 2,141 deletions.
16 changes: 16 additions & 0 deletions acceptance/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules
cypress/videos/
results
build
*~
project
addon-testing-project

# yarn 3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Empty file added acceptance/.gitkeep
Empty file.
Binary file added acceptance/.yarn/install-state.gz
Binary file not shown.
4,781 changes: 2,715 additions & 2,066 deletions acceptance/yarn.lock

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions jest-addon.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
module.exports = {
testMatch: ["**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)"],
testMatch: ['**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)'],
collectCoverageFrom: [
"src/addons/**/src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
'src/addons/**/src/**/*.{js,jsx,ts,tsx}',
'!src/**/*.d.ts',
],
transformIgnorePatterns: ["node_modules/(?!(volto-slate|@plone/volto)/)"],
transformIgnorePatterns: ['node_modules/(?!(volto-slate|@plone/volto)/)'],
moduleNameMapper: {
"@plone/volto/cypress": "<rootDir>/node_modules/@plone/volto/cypress",
"@plone/volto/babel": "<rootDir>/node_modules/@plone/volto/babel",
"@plone/volto/(.*)$": "<rootDir>/node_modules/@plone/volto/src/$1",
"@package/(.*)$": "<rootDir>/src/$1",
"@root/(.*)$": "<rootDir>/src/$1",
"~/(.*)$": "<rootDir>/src/$1",
"load-volto-addons":
"<rootDir>/node_modules/@plone/volto/jest-addons-loader.js",
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
'@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
'@package/(.*)$': '<rootDir>/src/$1',
'@root/(.*)$': '<rootDir>/src/$1',
'~/(.*)$': '<rootDir>/src/$1',
'load-volto-addons':
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
transform: {
"^.+\\.js(x)?$": "babel-jest",
"^.+\\.(png)$": "jest-file",
"^.+\\.(jpg)$": "jest-file",
"^.+\\.(svg)$": "./node_modules/@plone/volto/jest-svgsystem-transform.js",
'^.+\\.js(x)?$': 'babel-jest',
'^.+\\.(png)$': 'jest-file',
'^.+\\.(jpg)$': 'jest-file',
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
},
coverageThreshold: {
global: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eslint-config-react-app": "7.0.1",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
Expand Down
65 changes: 8 additions & 57 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.20.7, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2":
"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2":
version: 7.23.6
resolution: "@babel/runtime@npm:7.23.6"
dependencies:
Expand Down Expand Up @@ -1846,7 +1846,7 @@ __metadata:
eslint-config-react-app: 7.0.1
eslint-plugin-flowtype: 8.0.3
eslint-plugin-import: 2.28.1
eslint-plugin-jsx-a11y: 6.7.1
eslint-plugin-jsx-a11y: ^6.7.1
eslint-plugin-prettier: 5.0.0
eslint-plugin-react: 7.33.2
eslint-plugin-react-hooks: 4.6.0
Expand Down Expand Up @@ -2517,7 +2517,7 @@ __metadata:
languageName: node
linkType: hard

"aria-query@npm:^5.1.3, aria-query@npm:^5.3.0":
"aria-query@npm:^5.3.0":
version: 5.3.0
resolution: "aria-query@npm:5.3.0"
dependencies:
Expand Down Expand Up @@ -2648,13 +2648,6 @@ __metadata:
languageName: node
linkType: hard

"ast-types-flow@npm:^0.0.7":
version: 0.0.7
resolution: "ast-types-flow@npm:0.0.7"
checksum: a26dcc2182ffee111cad7c471759b0bda22d3b7ebacf27c348b22c55f16896b18ab0a4d03b85b4020dce7f3e634b8f00b593888f622915096ea1927fa51866c4
languageName: node
linkType: hard

"ast-types-flow@npm:^0.0.8":
version: 0.0.8
resolution: "ast-types-flow@npm:0.0.8"
Expand Down Expand Up @@ -2717,14 +2710,7 @@ __metadata:
languageName: node
linkType: hard

"axe-core@npm:^4.6.2":
version: 4.8.2
resolution: "axe-core@npm:4.8.2"
checksum: 8c19f507dabfcb8514e4280c7fc66e85143be303ddb57ec9f119338021228dc9b80560993938003837bda415fde7c07bba3a96560008ffa5f4145a248ed8f5fe
languageName: node
linkType: hard

"axobject-query@npm:^3.1.1, axobject-query@npm:^3.2.1":
"axobject-query@npm:^3.2.1":
version: 3.2.1
resolution: "axobject-query@npm:3.2.1"
dependencies:
Expand Down Expand Up @@ -3946,33 +3932,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-jsx-a11y@npm:6.7.1":
version: 6.7.1
resolution: "eslint-plugin-jsx-a11y@npm:6.7.1"
dependencies:
"@babel/runtime": ^7.20.7
aria-query: ^5.1.3
array-includes: ^3.1.6
array.prototype.flatmap: ^1.3.1
ast-types-flow: ^0.0.7
axe-core: ^4.6.2
axobject-query: ^3.1.1
damerau-levenshtein: ^1.0.8
emoji-regex: ^9.2.2
has: ^1.0.3
jsx-ast-utils: ^3.3.3
language-tags: =1.0.5
minimatch: ^3.1.2
object.entries: ^1.1.6
object.fromentries: ^2.0.6
semver: ^6.3.0
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
checksum: f166dd5fe7257c7b891c6692e6a3ede6f237a14043ae3d97581daf318fc5833ddc6b4871aa34ab7656187430170500f6d806895747ea17ecdf8231a666c3c2fd
languageName: node
linkType: hard

"eslint-plugin-jsx-a11y@npm:^6.5.1":
"eslint-plugin-jsx-a11y@npm:^6.5.1, eslint-plugin-jsx-a11y@npm:^6.7.1":
version: 6.8.0
resolution: "eslint-plugin-jsx-a11y@npm:6.8.0"
dependencies:
Expand Down Expand Up @@ -5599,7 +5559,7 @@ __metadata:
languageName: node
linkType: hard

"jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.3, jsx-ast-utils@npm:^3.3.5":
"jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.5":
version: 3.3.5
resolution: "jsx-ast-utils@npm:3.3.5"
dependencies:
Expand Down Expand Up @@ -5634,22 +5594,13 @@ __metadata:
languageName: node
linkType: hard

"language-subtag-registry@npm:^0.3.20, language-subtag-registry@npm:~0.3.2":
"language-subtag-registry@npm:^0.3.20":
version: 0.3.22
resolution: "language-subtag-registry@npm:0.3.22"
checksum: 8ab70a7e0e055fe977ac16ea4c261faec7205ac43db5e806f72e5b59606939a3b972c4bd1e10e323b35d6ffa97c3e1c4c99f6553069dad2dfdd22020fa3eb56a
languageName: node
linkType: hard

"language-tags@npm:=1.0.5":
version: 1.0.5
resolution: "language-tags@npm:1.0.5"
dependencies:
language-subtag-registry: ~0.3.2
checksum: c81b5d8b9f5f9cfd06ee71ada6ddfe1cf83044dd5eeefcd1e420ad491944da8957688db4a0a9bc562df4afdc2783425cbbdfd152c01d93179cf86888903123cf
languageName: node
linkType: hard

"language-tags@npm:^1.0.9":
version: 1.0.9
resolution: "language-tags@npm:1.0.9"
Expand Down Expand Up @@ -7149,7 +7100,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^6.3.0, semver@npm:^6.3.1":
"semver@npm:^6.3.1":
version: 6.3.1
resolution: "semver@npm:6.3.1"
bin:
Expand Down

0 comments on commit 2d5f209

Please sign in to comment.