@newskit-render/core 2.2.3 → 2.3.0

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
@@ -3,6 +3,14 @@
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.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)
7
+
8
+ **Note:** Version bump only for package @newskit-render/core
9
+
10
+
11
+
12
+
13
+
6
14
  ## [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
15
 
8
16
  **Note:** Version bump only for package @newskit-render/core
@@ -71,6 +71,7 @@ describe('MAIN API', () => {
71
71
  })
72
72
  })
73
73
  })
74
+
74
75
  it('getUserSubscription', () => {
75
76
  cy.getCookie(Cypress.env('MAIN_COOKIE_NAME')).then((cookie) => {
76
77
  cy.request({
@@ -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
- // `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)
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.2.3",
3
+ "version": "2.3.0",
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.3",
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.2.1",
47
- "@newskit-render/shared-components": "^1.1.1",
48
- "@newskit-render/standalone-components": "^1.1.0",
46
+ "@newskit-render/my-account": "^3.3.0",
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",