sku 11.3.0 → 11.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # sku
2
2
 
3
+ ## 11.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - test: Run Jest using the CI flag when in CI environment ([#678](https://github.com/seek-oss/sku/pull/678))
8
+
9
+ Tests run in CI should fail if a new snapshot is written, this was not the case and needed to be opted into manually by passing the `--ci` [flag to Jest](https://jestjs.io/docs/cli#--ci).
10
+
3
11
  ## 11.3.0
4
12
 
5
13
  ### Minor Changes
@@ -138,5 +138,7 @@ An explanation of the pseudo-localization process, as well as possible use cases
138
138
  `en-PSEUDO` can be consumed just like any other language in your app:
139
139
 
140
140
  ```jsx
141
- const App = () => <VocabProvider language="en-PSEUDO">...</VocabProvider>;
141
+ <VocabProvider language="en-PSEUDO">
142
+ <App />
143
+ </VocabProvider>
142
144
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sku",
3
- "version": "11.3.0",
3
+ "version": "11.3.1",
4
4
  "description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
5
5
  "main": "index.js",
6
6
  "bin": {
package/scripts/test.js CHANGED
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable-next-line jest/no-jest-import */
2
2
  const jest = require('jest');
3
3
 
4
+ const isCI = require('../lib/isCI');
4
5
  const baseJestConfig = require('../config/jest/jestConfig');
5
6
  const { argv } = require('../config/args');
6
7
  const { jestDecorator } = require('../context');
@@ -14,5 +15,9 @@ const { runVocabCompile } = require('../lib/runVocab');
14
15
 
15
16
  argv.push('--config', JSON.stringify(jestConfig));
16
17
 
18
+ if (isCI) {
19
+ argv.push('--ci');
20
+ }
21
+
17
22
  jest.run(argv);
18
23
  })();