Skip to content
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
97476b1
Init
amoore108 May 15, 2026
a53d505
yarn lock
amoore108 May 15, 2026
6d0c67a
Re-add deleted integration utils
amoore108 May 15, 2026
073ad43
TS fixes
amoore108 May 15, 2026
832859e
Remove server/local folder
amoore108 May 15, 2026
248fac4
Update integration commands
amoore108 May 15, 2026
73c26bb
runTests update
amoore108 May 15, 2026
ac6b7e3
Re-add OD tests
amoore108 May 15, 2026
5feaf73
Remove unneeded commands
amoore108 May 15, 2026
dd834df
Add `cypress:install` to next app
amoore108 May 15, 2026
56852e1
Re-add storybook build command
amoore108 May 15, 2026
cd34e2e
Update main.ts
amoore108 May 15, 2026
ba66df3
Update dependencyCheck.js
amoore108 May 15, 2026
e390dc7
Change `#nextjs/server` to `#server`
amoore108 May 15, 2026
126936f
Fix lint step
amoore108 May 15, 2026
8876548
Update package.json
amoore108 May 15, 2026
f91d5e4
Set node env
amoore108 May 15, 2026
ef9245d
Move `Renderers` folder up a level
amoore108 May 15, 2026
1b50a8d
Delete unneeded `server/utilities`
amoore108 May 15, 2026
0d27c94
Convert utilities to TS
amoore108 May 15, 2026
3ffdace
Move `server/utilities` into single `utilities` folder
amoore108 May 15, 2026
4ebfe90
Move `server/Renderers` into `renderers`
amoore108 May 15, 2026
af520c0
Fix utilities imports
amoore108 May 15, 2026
6c7edbe
Fix `tsc` errors in Next app
amoore108 May 15, 2026
af9bff4
Move ODAudio podcastExternalLinks into ODAudio folder
amoore108 May 15, 2026
8731808
Fix build:storybook command
amoore108 May 15, 2026
c6d0418
Merge branch 'latest' into remove-express
amoore108 May 15, 2026
af9b799
Update package.json
amoore108 May 15, 2026
e295133
Remove ` @babel/plugin-proposal-object-rest-spread`
amoore108 May 15, 2026
82faa4d
Remove `@babel/plugin-proposal-export-default-from`
amoore108 May 15, 2026
819de9c
Remove `@babel/plugin-syntax-dynamic-import`
amoore108 May 15, 2026
2bd84af
Remove `@babel/plugin-proposal-throw-expressions`
amoore108 May 15, 2026
aeb4220
Remove `@babel/plugin-transform-runtime`
amoore108 May 15, 2026
1a6291f
Remove `@babel/core` and `@babel/polyfill`
amoore108 May 15, 2026
5d43b3f
Remove `@babel/runtime` and `babel-plugin-transform-rename-import`
amoore108 May 15, 2026
d7d8fb1
Remove `#server` alias
amoore108 May 16, 2026
909d4d4
Remove `react-router-config`
amoore108 May 16, 2026
1fb22ac
Remove `react-router-dom`
amoore108 May 16, 2026
44898c7
Remove `stream-browserify`
amoore108 May 16, 2026
9ddc9a2
Remove more old `jest` devDependencies
amoore108 May 16, 2026
50ac0b9
Remove `jest-fetch-mock` usage
amoore108 May 16, 2026
4ea2f3c
Update sw.test.js
amoore108 May 16, 2026
c149aab
Update index.client.test.js
amoore108 May 16, 2026
4bf1a28
Update index.client.test.js
amoore108 May 16, 2026
5c7d777
Remove `@types/loadable__component`
amoore108 May 16, 2026
678d9e5
Remove `url-parse` in favour of native `URL` interface
amoore108 May 17, 2026
2d45d52
Update index.ts
amoore108 May 17, 2026
00426e5
Update index.ts
amoore108 May 17, 2026
f58a7d1
Remove `type-check` command. Can just use `tsc`
amoore108 May 17, 2026
ed36699
Fix LiveTV path extraction
amoore108 May 17, 2026
2ddf519
Update index.test.ts
amoore108 May 17, 2026
b45fe41
Remove `@esbuild-*` - don't think these are needed
amoore108 May 17, 2026
3ea5238
Remove `yaml-js`
amoore108 May 17, 2026
1c75196
Remove `strip-ansi` devDependency
amoore108 May 17, 2026
832823c
Remove `intersection-observer` polyfill
amoore108 May 17, 2026
58318f8
Update package.json
amoore108 May 17, 2026
4731e5a
Remove `stylelint.config.js` - don't think its used
amoore108 May 17, 2026
ee8bbc2
Change `onEnvironment` util to TS
amoore108 May 17, 2026
fa33092
Move `runTests` to TS + remove `--nextJS` arg
amoore108 May 17, 2026
d219210
Remove `NODE_OPTIONS=--no-experimental-strip-types` from Next app com…
amoore108 May 17, 2026
e0f7f21
Update dependabot.yml
amoore108 May 18, 2026
9074f14
Merge branch 'latest' into remove-express
amoore108 May 18, 2026
a798e3b
Update `urlParser` to TS and extract `base` to const
amoore108 May 18, 2026
1868ad9
Update index.test.tsx
amoore108 May 18, 2026
7333bd9
Remove helper functions for OD test files
amoore108 May 18, 2026
2e28576
Merge branch 'latest' into remove-express
amoore108 May 19, 2026
6556fa8
Remove comment in `dependencyCheck` relating to `next/dynamic`
amoore108 May 19, 2026
26354a2
Delete `bundleSize` folder
amoore108 May 19, 2026
f206da8
Change `getToggles` error test to return string instead of error
amoore108 May 19, 2026
6d51e33
Remove other references to `bundleSize`
amoore108 May 19, 2026
341c9fa
Merge branch 'latest' into remove-express
amoore108 May 19, 2026
35dce5d
Remove unused commands + `check-package-manager.js`
amoore108 May 19, 2026
7b5373c
Delete packagelockHttps.sh
amoore108 May 19, 2026
c43cae6
Delete killApp.sh
amoore108 May 19, 2026
7962a80
Merge branch 'latest' into remove-express
amoore108 May 20, 2026
9e99a7b
Delete JavaScript-Bundling-Strategy.mdx
amoore108 May 20, 2026
acfb25b
Update `invalid json` response to be more accurate
amoore108 May 20, 2026
a52f274
Fix ODTV test snapshots
amoore108 May 20, 2026
55bc4aa
Fix ODAudio test snapshots
amoore108 May 20, 2026
aef56c5
Merge branch 'latest' into remove-express
amoore108 May 20, 2026
74684f4
Fixed missed references to `getPageData()` function
amoore108 May 20, 2026
ef2910a
Update main Readme to remove old documentation about render-cycle and…
amoore108 May 20, 2026
2216a64
Remove `pages` entrypoints as these aren't used by Next.js app
amoore108 May 20, 2026
0d3e3fd
Remove `PageHandlers` HOCs and `applyBasicPageHandlers`
amoore108 May 20, 2026
b6286df
Delete withContexts.test.jsx.snap
amoore108 May 20, 2026
48e1287
Fix Storybook imports for page components
amoore108 May 20, 2026
68e3aa7
Fix stories to use `PageLayoutWrapper`
amoore108 May 20, 2026
a5b1ad8
Update index.stories.tsx
amoore108 May 20, 2026
387b2cb
Remove `withPageWrapper` HOC
amoore108 May 20, 2026
08a00af
Suppress TS errors for fixture data in stories
amoore108 May 20, 2026
3adabc3
Wrap homepage stories with ServiceContext
amoore108 May 20, 2026
473022c
Update index.stories.jsx
amoore108 May 20, 2026
6cbf90e
Fix some more stories with hardcoded services
amoore108 May 20, 2026
fa9379d
Fix service setting for some stories
amoore108 May 20, 2026
ea370fe
Update index.stories.tsx
amoore108 May 20, 2026
e6adffd
Update index.stories.tsx
amoore108 May 20, 2026
b5ee850
Add `liveRadioSchedule` toggle to radio page story
amoore108 May 20, 2026
003d6a2
Enable most read on homepage story
amoore108 May 20, 2026
a66d901
Fix dark ui and lite CSS
amoore108 May 20, 2026
eefaf22
Update index.stories.tsx
amoore108 May 20, 2026
f031c7e
Update index.stories.tsx
amoore108 May 20, 2026
7a29d48
Merge branch 'latest' into remove-express
eagerterrier May 20, 2026
80c19b6
Update canonical.test.ts.snap
amoore108 May 20, 2026
bfc16dc
Merge branch 'latest' into remove-express
Isabella-Mitchell May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ updates:
# https://jira.dev.bbc.co.uk/browse/NEWSWORLDSERVICE-2164: Migrate all page types to Next.js + Lambda to remove Express + EC2 infrastructure
- dependency-name: 'react-router-config'
- dependency-name: 'react-router-dom'
- dependency-name: 'express'
update-types: ['version-update:semver-major']
labels:
- 'dependencies'
groups:
Expand All @@ -45,9 +43,6 @@ updates:
- 'next'
- 'next-*'
- '@img-sharp-*'
loadable-minor-patch:
patterns:
- '@loadable/*'
react:
patterns:
- 'react'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-misc-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:

- name: Linting
if: github.ref != 'refs/heads/latest'
run: yarn build && yarn test:lint
run: yarn test:lint

- name: NPM Audit
if: github.ref != 'refs/heads/latest'
Expand Down
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type { StorybookConfig } from '@storybook/react-webpack5';
import alias from '../dirAlias';

import { fontInfo } from '../src/app/components/ThemeProvider/fontFaces';

const require = createRequire(import.meta.url);
const MomentTimezoneInclude = require('../src/app/legacy/psammead/moment-timezone-include/src');
Comment thread
andrewscfc marked this conversation as resolved.
const DOT_ENV_CONFIG = dotenv.config({ quiet: true });

const storybookConfig: StorybookConfig = {
Expand Down Expand Up @@ -116,6 +116,7 @@ const storybookConfig: StorybookConfig = {
new webpack.ProvidePlugin({
process: 'process/browser',
}),
new MomentTimezoneInclude({ startYear: 2010, endYear: 2026 }),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we ever address the endYear in production?!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next has it set correctly:

new MomentTimezoneInclude({ startYear: 2010, endYear: 2026 }),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be further in the future like 2028 or something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess what we need to put a reminder in or we'll get a new years problem?

);

config.resolve!.fallback = {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { EventTrackingContextProvider } from '../src/app/contexts/EventTrackingC
import withServicesDecorator from './withServicesDecorator';
import pageDataFixture from '../data/news/articles/c0g992jmmkko.json';
import { RequestContextProvider } from '../src/app/contexts/RequestContext';
import serviceConfigs from '../src/server/utilities/serviceConfigs';
import serviceConfigs from '#utilities/serviceConfigs';
import {
NOTO_SANS_ETHIOPIC_BOLD,
NOTO_SANS_ETHIOPIC_REGULAR,
Expand Down
18 changes: 2 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,11 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"runtimeVersion": "22",
"request": "launch",
"name": "Debug Express App",
"program": "${workspaceFolder}/node_modules/webpack/bin/webpack.js",
"args": [
"--watch", "--progress", "--env" , "config='server'"
],
"env" : { "NODE_ENV" : "development" },
"skipFiles": [
"${workspaceFolder}/node_modules/**/*",
]
},
{
"name": "Debug Next.js: server-side",
"type": "node-terminal",
"request": "launch",
"command": "cd ws-nextjs-app && nvm use && yarn dev"
},
}
]
}
}
4 changes: 0 additions & 4 deletions .vscode/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Debugging in VS Code

The setup here mirrors the [`webpack:dev:server`](https://github.com/bbc/simorgh/blob/2944b327aac6fa22a8b5474d24e48fb631728431/package.json#L65) `package.json` script. You run it in the debug tab choosing 'Debug Express App'.

![A picture of the button to start debugging in VS Code](vscode-debug.png)

You can debug the NextJS app by choosing 'Debug Next.js: server-side'; this command has been adapted from the docs [here](https://nextjs.org/docs/pages/building-your-application/configuring/debugging#debugging-with-vs-code)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 1 addition & 16 deletions babel.config.main.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
const plugins = [
'@emotion/babel-plugin',
'@babel/plugin-proposal-object-rest-spread', // allows ...spread notation
'@babel/plugin-syntax-dynamic-import', // allows `await import()` syntax
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-transform-runtime',
'@loadable/babel-plugin',
[
'transform-rename-import',
{ original: 'next/dynamic', replacement: '@loadable/component' },
],
];
const plugins = ['@emotion/babel-plugin'];

// allows dynamic `import()` in Node tests.
if (process.env.NODE_ENV === 'test') {
plugins.push('dynamic-import-node');
plugins.push('@babel/plugin-proposal-throw-expressions'); // allows `throw new Error();`
}

const overrides = [
Expand Down Expand Up @@ -54,9 +42,6 @@ module.exports = api => {
}),
node: 'current',
},
// analyses code & polyfills only the features that are used, only for the targeted browsers
useBuiltIns: 'usage',
corejs: '3',
},
],
[
Expand Down
9 changes: 6 additions & 3 deletions dirAlias.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'#app': resolvePath('src/app'),
'#src': resolvePath('src'),
'#nextjs': resolvePath('ws-nextjs-app/'),
'#utilities': resolvePath('ws-nextjs-app/utilities/'),
'#contexts': resolvePath('src/app/contexts'),
'#components': resolvePath('src/app/legacy/components'),
'#containers': resolvePath('src/app/legacy/containers'),
Expand All @@ -20,14 +21,15 @@ module.exports = {
'#models': resolvePath('src/app/models/'),
'#pages': resolvePath('src/app/pages/'),
'#testHelpers': resolvePath('src/testHelpers/'),
'#server': resolvePath('src/server/'),
'#server': resolvePath('ws-nextjs-app/server/'),
'#storybook': resolvePath('.storybook/'),
'#cypress': resolvePath('cypress/'),
},
jestDirAlias: {
'^#app(.*)$': '<rootDir>/src/app$1',
'^#src(.*)$': '<rootDir>/src$1',
'^#nextjs(.*)$': '<rootDir>/ws-nextjs-app$1',
'^#utilities(.*)$': '<rootDir>/ws-nextjs-app/utilities$1',
'^#contexts(.*)$': '<rootDir>/src/app/contexts$1',
'^#components(.*)$': '<rootDir>/src/app/legacy/components$1',
'^#containers(.*)$': '<rootDir>/src/app/legacy/containers$1',
Expand All @@ -38,7 +40,7 @@ module.exports = {
'^#models(.*)$': '<rootDir>/src/app/models$1',
'^#pages(.*)$': '<rootDir>/src/app/pages$1',
'^#testHelpers(.*)$': '<rootDir>/src/testHelpers$1',
'^#server(.*)$': '<rootDir>/src/server$1',
'^#server(.*)$': '<rootDir>/ws-nextjs-app/server$1',
'^#storybook(.*)$': '<rootDir>/.storybook$1',
'^#cypress(.*)$': '<rootDir>/cypress$1',
},
Expand All @@ -47,6 +49,7 @@ module.exports = {
['#app', './src/app'],
['#src', './src'],
['#nextjs', './ws-nextjs-app'],
['#utilities', './ws-nextjs-app/utilities'],
['#contexts', './src/app/contexts'],
['#components', './src/app/legacy/components'],
['#containers', './src/app/legacy/containers'],
Expand All @@ -57,7 +60,7 @@ module.exports = {
['#models', './src/app/models'],
['#pages', './src/app/pages'],
['#testHelpers', './src/testHelpers'],
['#server', './src/server'],
['#server', './ws-nextjs-app/server'],
['#storybook', './.storybook'],
['#cypress', './cypress'],
],
Expand Down
4 changes: 2 additions & 2 deletions docs/Rendering-Ads.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Afrique, Arabic, Azeri, Bengali, Gahuza, Hausa, Hindi, Indonesia, Japanese, Kyrg

Given you are using Chrome browser.

1. Download [ModHeader Chrome extension](https://www.google.com/search?q=modheader+chrome+pass+boolean\&rlz=1C5CHFA_enGB762GB762\&oq=modheader\&aqs=chrome.0.69i59l2j69i57j69i60j69i61j69i60j69i65l2.1039j0j7\&sourceid=chrome\&ie=UTF-8)
1. Download [ModHeader Chrome extension](https://www.google.com/search?q=modheader+chrome+pass+boolean&rlz=1C5CHFA_enGB762GB762&oq=modheader&aqs=chrome.0.69i59l2j69i57j69i60j69i61j69i60j69i65l2.1039j0j7&sourceid=chrome&ie=UTF-8)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting it's removed the back slashes here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this might have been Copilot


2. With the ModHeader extension, add a header of `BBC-Adverts` with the value `true`.

Expand Down Expand Up @@ -55,7 +55,7 @@ If you are unable to set a proxy on one of the Windows a11y laptops, you won't b

e.g. `SIMORGH_PUBLIC_STATIC_ASSETS_ORIGIN=http://192.168.0.50:7080`

3. Disable the `upgrade-insecure-requests` directive from the [cspHeader](https://github.com/bbc/simorgh/blob/latest/src/server/utilities/cspHeader/index.js#L419)
3. Disable the `upgrade-insecure-requests` directive from the [cspHeader](https://github.com/bbc/simorgh/blob/latest/src/ws-nextjs-app/utilities/cspHeader/index.ts#L419)

4. If you can't set the `BBC-Adverts` header in the Windows laptop, you will need to remove [this](https://github.com/bbc/simorgh/blob/latest/src/app/containers/Ad/Canonical/index.jsx#L63) condition from the codebase to be able to render the ad

Expand Down
72 changes: 1 addition & 71 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,69 +51,6 @@ const clientUnitTests = {
],
};

const ampIntegrationTests = {
displayName: 'Integration Tests - AMP',
setupFiles: ['./src/testHelpers/jest-setup.js'],
testEnvironment: './src/integration/integrationTestEnvironment.js',
testEnvironmentOptions: {
platform: 'amp',
},
moduleNameMapper: jestDirAlias,
setupFilesAfterEnv: ['./src/testHelpers/setupTests.js'],
testMatch: ['**/src/integration/!(utils)/**/*.test.js'],
testPathIgnorePatterns: [
'.*lite\\.test\\.js$',
'.*canonical\\.test\\.js$',
'<rootDir>/src/integration/pages/articles/',
'<rootDir>/src/integration/pages/mediaArticlePage/',
'<rootDir>/src/integration/pages/mediaAssetPage/',
'<rootDir>/src/integration/pages/photoGalleryPage/',
'<rootDir>/src/integration/pages/storyPage/',
],
};

const canonicalIntegrationTests = {
displayName: 'Integration Tests - Canonical',
setupFiles: ['./src/testHelpers/jest-setup.js'],
testEnvironment: './src/integration/integrationTestEnvironment.js',
testEnvironmentOptions: {
platform: 'canonical',
},
moduleNameMapper: jestDirAlias,
setupFilesAfterEnv: ['./src/testHelpers/setupTests.js'],
testMatch: ['**/src/integration/!(utils)/**/*.test.js'],
testPathIgnorePatterns: [
'.*lite\\.test\\.js$',
'.*amp\\.test\\.js$',
'<rootDir>/src/integration/pages/articles/',
'<rootDir>/src/integration/pages/mediaArticlePage/',
'<rootDir>/src/integration/pages/mediaAssetPage/',
'<rootDir>/src/integration/pages/photoGalleryPage/',
'<rootDir>/src/integration/pages/storyPage/',
],
};

const liteIntegrationTests = {
displayName: 'Integration Tests - Lite',
setupFiles: ['./src/testHelpers/jest-setup.js'],
testEnvironment: './src/integration/integrationTestEnvironment.js',
testEnvironmentOptions: {
platform: 'lite',
},
moduleNameMapper: jestDirAlias,
setupFilesAfterEnv: ['./src/testHelpers/setupTests.js'],
testMatch: ['**/src/integration/!(utils)/**/*.test.js'],
testPathIgnorePatterns: [
'.*canonical\\.test\\.js$',
'.*amp\\.test\\.js$',
'<rootDir>/src/integration/pages/articles/',
'<rootDir>/src/integration/pages/mediaArticlePage/',
'<rootDir>/src/integration/pages/mediaAssetPage/',
'<rootDir>/src/integration/pages/photoGalleryPage/',
'<rootDir>/src/integration/pages/storyPage/',
],
};

const puppeteerTests = {
preset: 'ts-jest',
setupFiles: ['./puppeteer/jest-setup.js'],
Expand All @@ -126,14 +63,7 @@ const puppeteerTests = {
};

module.exports = {
projects: [
unitTests,
clientUnitTests,
ampIntegrationTests,
canonicalIntegrationTests,
liteIntegrationTests,
puppeteerTests,
],
projects: [unitTests, clientUnitTests, puppeteerTests],
reporters: [
'default',
[
Expand Down
Loading
Loading