Skip to content

Add GHA job step to run template unit tests#226

Open
leotm wants to merge 1 commit into
react-native-community:mainfrom
leotm:run-template-unit-tests-in-ci
Open

Add GHA job step to run template unit tests#226
leotm wants to merge 1 commit into
react-native-community:mainfrom
leotm:run-template-unit-tests-in-ci

Conversation

@leotm
Copy link
Copy Markdown
Contributor

@leotm leotm commented Jun 3, 2026

Summary:

The added CI check will pass once

is merged

a CI check is a better approach than e.g. adding a root-level test

// scripts\__tests__\templateYarnTest-test.js
const { execSync } = require('node:child_process')
describe('template', () => {
    it ('run test script', () =>{
        execSync('npm test', { cwd: 'template'}) // bad
    })
})

Resolve: #225

NB: should also be running yarn instead of npm, i'll refactor the workflow after this is merged

Changelog:

[General][Added] - Add GHA job step to run template unit tests

Test Plan:

CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Template tests fail

2 participants