1
0
Fork 0
firefox/remote/test/puppeteer/tools/merge-canary-test-expectations.mjs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
497 B
JavaScript

/**
* @license
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
// Modifies test/TestExpectations.json in place.
import fs from 'fs';
const source = 'test/TestExpectations.json';
const testExpectations = JSON.parse(fs.readFileSync(source, 'utf-8'));
const canaryTestExpectations = JSON.parse(
fs.readFileSync('test/CanaryTestExpectations.json', 'utf-8'),
);
fs.writeFileSync(
source,
JSON.stringify([...testExpectations, ...canaryTestExpectations], null, 2),
);