Skip to content

Commit 7aaa175

Browse files
fix: run puppeteer tests correctly on Ubuntu 23.10+ OS
1 parent 75d8eef commit 7aaa175

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
- name: Disable AppArmor on Ubuntu for puppeteer Chrome test
20+
if: ${{ matrix.os == 'ubuntu-latest' }}
21+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
1922
- name: Use node ${{ matrix.node }}
2023
uses: actions/setup-node@v4
2124
with:

packages/optimizer/lib/transformers/Markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Markdown {
7272
if (node.tagName === 'img') {
7373
promises.push(this.transformImg(node, params));
7474
}
75-
if(node.tagName === 'picture') {
75+
if (node.tagName === 'picture') {
7676
promises.push(this.transformPicture(node, params));
7777
}
7878
node = tmpNode;

packages/optimizer/spec/end-to-end/EndToEndSpec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
require('fetch-mock');
1817
const createSpec = require('../helpers/TransformerRunner.js');
1918
const log = require('../../lib/log.js');
2019
const {

0 commit comments

Comments
 (0)