Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
"node": "current"
}
}
]
],
"plugins": [
["@babel/plugin-transform-react-jsx", {
"runtime": "automatic"
}],
["@babel/plugin-proposal-class-properties", { "loose": true }]
],
"@babel/preset-react"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/website-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -35,9 +35,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.16
v22.16
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If you're a developer, you're welcome to submit a pull request. Please run the t
Prerequisites:

- [git](https://git-scm.com/)
- [node.js 16.X+](https://nodejs.org/)
- [node.js 22.X+](https://nodejs.org/)

Setup:

Expand Down
4 changes: 2 additions & 2 deletions e2e/global-setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { e2eSetup } from './utility.js';
import { setup } from 'jest-environment-puppeteer';
import setupPuppeteer from 'jest-environment-puppeteer/setup';

export default async function globalSetup(globalConfig) {
e2eSetup();
await setup(globalConfig);
await setupPuppeteer(globalConfig);
}
4 changes: 2 additions & 2 deletions e2e/global-teardown.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { e2eTeardown } from './utility.js';
import { teardown } from 'jest-environment-puppeteer';
import teardownPuppeteer from 'jest-environment-puppeteer/teardown';

export default async function globalTeardown(globalConfig) {
await teardown(globalConfig);
await teardownPuppeteer(globalConfig);
e2eTeardown();
}
4 changes: 2 additions & 2 deletions e2e/local.perf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function assertWarnings(expected, options) {
describe('Just Not Sorry', () => {
beforeEach(async () => {
await page.goto(`file://${TEST_PAGE}`);
await page.waitForTimeout(500);
await new Promise((resolve) => setTimeout(resolve, 500));
await page.click('#email');
await assertWarnings(0, { visible: false, timeout: TEST_WAIT_TIME });
});
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('Just Not Sorry', () => {
await page.keyboard.press('Enter');
await page.keyboard.press('Enter');

await page.waitForTimeout(500);
await new Promise((resolve) => setTimeout(resolve, 500));
await assertWarnings(20 * (i + 1), {
visible: true,
timeout: TEST_WAIT_TIME,
Expand Down
7 changes: 6 additions & 1 deletion jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//This filename is the default path for jest config

// Allow running without the sandbox on CI only
const ciOnlyArgs =
process.env.CI === 'true' ? ['--no-sandbox', '--disable-setuid-sandbox'] : [];

module.exports = {
launch: {
headless: false,
Expand All @@ -8,6 +13,6 @@ module.exports = {
`--disable-extensions-except=build`,
`--load-extension=build`,
`--window-size=800,800`,
],
].concat(ciOnlyArgs),
},
};
Loading