mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
test: skip i18n tests if the github event is a pull request
This commit is contained in:
@@ -13,7 +13,11 @@ const db = require('./mocks/databasemock');
|
||||
describe('i18n', () => {
|
||||
let folders;
|
||||
|
||||
before(async () => {
|
||||
before(async function () {
|
||||
if (process.env.GITHUB_EVENT_NAME === 'pull_request') {
|
||||
this.skip();
|
||||
}
|
||||
|
||||
folders = await fs.promises.readdir(path.resolve(__dirname, '../public/language'));
|
||||
folders = folders.filter(f => f !== 'README.md');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user