Skip to content

Node.js based forum software built for the modern web

test: skip i18n tests if the github event is a pull request

Julian Lame578c605663b
diff --git a/test/i18n.js b/test/i18n.js
index ed3a86e7ff..401b2c26fb 100644
--- a/test/i18n.js
+++ b/test/i18n.js
@@ -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');
});