@newskit-render/core 2.2.3 → 2.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 +16 -0
- package/cypress/e2e/account/main-api.spec.js +1 -0
- package/cypress/plugins/index.js +46 -46
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.3.1-alpha.0...@newskit-render/core@2.3.1) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.3.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.3.0-alpha.0...@newskit-render/core@2.3.0) (2022-10-06)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @newskit-render/core
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.2.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@2.2.3-alpha.0...@newskit-render/core@2.2.3) (2022-10-06)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @newskit-render/core
|
package/cypress/plugins/index.js
CHANGED
|
@@ -15,49 +15,49 @@
|
|
|
15
15
|
/**
|
|
16
16
|
* @type {Cypress.PluginConfig}
|
|
17
17
|
*/
|
|
18
|
-
import fs from 'fs'
|
|
19
|
-
import path from 'path'
|
|
20
|
-
import { loadEnvConfig } from '@next/env'
|
|
21
|
-
module.exports = (on, config) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
require('@applitools/eyes-cypress')(module)
|
|
18
|
+
import fs from 'fs'
|
|
19
|
+
import path from 'path'
|
|
20
|
+
import { loadEnvConfig } from '@next/env'
|
|
21
|
+
module.exports = (on, config) => {
|
|
22
|
+
// `on` is used to hook into various events Cypress emits
|
|
23
|
+
// `config` is the resolved Cypress config
|
|
24
|
+
const projectDir = process.cwd()
|
|
25
|
+
loadEnvConfig(projectDir)
|
|
26
|
+
const conf = config
|
|
27
|
+
|
|
28
|
+
const dirPath =
|
|
29
|
+
config.integrationFolder === './cypress/e2e'
|
|
30
|
+
? path.resolve('./cypress/e2e')
|
|
31
|
+
: path.resolve('./cypress/visual')
|
|
32
|
+
fs.readdir(dirPath, function (err, files) {
|
|
33
|
+
if (err) {
|
|
34
|
+
return console.log('Unable to scan directory: ' + err)
|
|
35
|
+
}
|
|
36
|
+
//listing all files using forEach. For this script to work the folder must only contain folders with spec files
|
|
37
|
+
files.forEach(function (file) {
|
|
38
|
+
conf.integrationFolder = `${dirPath}/${file}`
|
|
39
|
+
})
|
|
40
|
+
return conf
|
|
41
|
+
})
|
|
42
|
+
const printVisualPath = path.resolve('./cypress/visual')
|
|
43
|
+
|
|
44
|
+
fs.readdir(printVisualPath, function (err, files) {
|
|
45
|
+
files.forEach(function (file) {
|
|
46
|
+
console.log(file, 'file logged')
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
on('task', {
|
|
50
|
+
log(message) {
|
|
51
|
+
console.log(message)
|
|
52
|
+
|
|
53
|
+
return null
|
|
54
|
+
},
|
|
55
|
+
table(message) {
|
|
56
|
+
console.table(message)
|
|
57
|
+
return null
|
|
58
|
+
},
|
|
59
|
+
})
|
|
60
|
+
return conf
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
require('@applitools/eyes-cypress')(module)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@emotion/styled": "11.10.4",
|
|
41
41
|
"@newskit-render/api": "^1.1.0",
|
|
42
42
|
"@newskit-render/auth": "^1.0.1",
|
|
43
|
-
"@newskit-render/checkout": "^1.0.
|
|
43
|
+
"@newskit-render/checkout": "^1.0.4",
|
|
44
44
|
"@newskit-render/feature-flags": "^1.0.0",
|
|
45
45
|
"@newskit-render/feed": "^1.0.1",
|
|
46
|
-
"@newskit-render/my-account": "^3.
|
|
47
|
-
"@newskit-render/shared-components": "^1.
|
|
48
|
-
"@newskit-render/standalone-components": "^1.
|
|
46
|
+
"@newskit-render/my-account": "^3.3.1",
|
|
47
|
+
"@newskit-render/shared-components": "^1.2.0",
|
|
48
|
+
"@newskit-render/standalone-components": "^1.2.0",
|
|
49
49
|
"@newskit-render/validation": "^1.0.0",
|
|
50
50
|
"cross-fetch": "3.1.5",
|
|
51
51
|
"graphql": "15.6.0",
|