Skip to content

Commit

Permalink
Merge pull request #11 from eea/develop
Browse files Browse the repository at this point in the history
test(jest): Drop jest-css-modules
  • Loading branch information
avoinea committed Oct 25, 2022
2 parents dea8938 + 1cc8fdb commit 6662c0d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .i18n.babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@plone/volto/babel');
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [0.4.2](https://github.com/eea/volto-slate-label/compare/0.4.1...0.4.2) - 24 October 2022
### [0.4.3](https://github.com/eea/volto-slate-label/compare/0.4.2...0.4.3) - 25 October 2022

#### :house: Documentation changes
#### :hammer_and_wrench: Others

- docs(howto): Cleanup broken docker examples [Alin Voinea - [`c767927`](https://github.com/eea/volto-slate-label/commit/c767927f8c866a4985453f6f2e09626fca285674)]
- test(jest): Drop jest-css-modules [Alin Voinea - [`c23d94e`](https://github.com/eea/volto-slate-label/commit/c23d94eba82aeaab310468414d7999b76c24e54c)]
### [0.4.2](https://github.com/eea/volto-slate-label/compare/0.4.1...0.4.2) - 24 October 2022

### [0.4.1](https://github.com/eea/volto-slate-label/compare/0.4.0...0.4.1) - 24 October 2022

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function (api) {
api.cache(true);
const presets = ['razzle/babel'];
const presets = ['razzle'];
const plugins = [
[
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
Expand Down
5 changes: 2 additions & 3 deletions jest-addon.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ module.exports = {
'@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',
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
'@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
'@plone/volto-slate':
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
'~/(.*)$': '<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',
'^.+\\.css$': 'jest-css-modules',
'^.+\\.less$': 'jest-css-modules',
'^.+\\.scss$': 'jest-css-modules',
'^.+\\.(png)$': 'jest-file',
'^.+\\.(jpg)$': 'jest-file',
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-slate-label",
"version": "0.4.2",
"version": "0.4.3",
"description": "@eeacms/volto-slate-label: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand All @@ -20,7 +20,6 @@
"dependencies": {},
"devDependencies": {
"@plone/scripts": "*",
"jest-css-modules": "^2.1.0",
"@cypress/code-coverage": "^3.10.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"md5": "^2.3.0"
Expand Down

0 comments on commit 6662c0d

Please sign in to comment.