Skip to content

Commit

Permalink
Skip public-api-test on win32 (#42276)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #42276

Follow up to D52729777, since CircleCI Windows tests are failing. This skips tests on `win32` as described [here](jestjs/jest#7245 (comment)).

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D52769047

fbshipit-source-id: 6a4df5235d699055d9f28ef66974a79c5660f5c8
  • Loading branch information
huntie authored and facebook-github-bot committed Jan 14, 2024
1 parent 9eb5833 commit f30acc6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/react-native/Libraries/__tests__/public-api-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const translate = require('flow-api-translator');
const {promises: fs} = require('fs');
const glob = require('glob');
const {transform} = require('hermes-transform');
const os = require('os');
const path = require('path');

const PACKAGE_ROOT = path.resolve(__dirname, '../../');
Expand Down Expand Up @@ -71,6 +72,14 @@ const sourceFiles = [
];

describe('public API', () => {
if (os.platform() === 'win32') {
// TODO(huntie): Re-enable once upstream flow-api-translator fixes are made
// eslint-disable-next-line jest/no-focused-tests
test.only('skipping tests on win32', () => {
console.log('skipping tests');
});
}

describe('should not change unintentionally', () => {
test.each(sourceFiles)('%s', async (file: string) => {
const source = await fs.readFile(path.join(PACKAGE_ROOT, file), 'utf-8');
Expand Down

0 comments on commit f30acc6

Please sign in to comment.