Skip to content

Commit f58eb32

Browse files
committed
ci(run/system-package): onboard to new testing
1 parent 5eaff3c commit f58eb32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/config/nodejs-prod.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"recaptcha_enterprise/snippets", // Cannot use import statement outside a module
9696
"run/idp-sql", // Error: Invalid contents in the credentials file
9797
"run/markdown-preview/editor", // Error: could not create an identity token: Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file
98-
"run/system-package", // Error: ENOENT: no such file or directory, access '/usr/bin/dot'
9998
"scheduler", // SyntaxError: Cannot use import statement outside a module
10099
"speech", // AssertionError: expected 'Transcription: Okay, I\'m here.\n Hi…' to match /Terrific. It's on the way./
101100
"storagetransfer", // CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

run/system-package/test/app.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414

1515
'use strict';
1616

17+
const {exec} = require('child_process');
1718
const path = require('path');
1819
const supertest = require('supertest');
1920

21+
// Manually install system package in testing environment
22+
exec("apt update && apt install graphviz -y")
23+
2024
describe('Unit Tests', () => {
2125
const app = require(path.join(__dirname, '..', 'app'));
2226
const request = supertest(app);

0 commit comments

Comments
 (0)