Skip to content

Commit 5d25a62

Browse files
committed
[AUTOMATED]: API Reports
1 parent ed94575 commit 5d25a62

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

common/api-review/app-exp.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
```ts
66

77
import { Component } from '@firebase/component';
8-
import { FirebaseApp } from '@firebase/app-types-exp';
9-
import { FirebaseAppConfig } from '@firebase/app-types-exp';
10-
import { FirebaseOptions } from '@firebase/app-types-exp';
8+
import { FirebaseApp } from '@firebase/app-types';
9+
import { FirebaseAppConfig } from '@firebase/app-types';
10+
import { FirebaseOptions } from '@firebase/app-types';
1111
import { LogCallback } from '@firebase/logger';
1212
import { LogLevel } from '@firebase/logger';
1313
import { LogOptions } from '@firebase/logger';

scripts/run_tests_in_ci.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const { argv } = require('yargs');
2+
const path = require('path');
3+
const { spawn } = require('child-process-promise');
4+
5+
(async () => {
6+
const myPath = argv._[0] || '.'; // default to the current directory
7+
const dir = path.resolve(myPath);
8+
const { name } = require(`${dir}/package.json`);
9+
10+
let stdio;
11+
let stderr;
12+
try {
13+
const testProcess = spawn('yarn', ['--cwd', dir, 'test']);
14+
15+
testProcess.childProcess.stdout.on('data', data => {
16+
stdio += data.toString();
17+
});
18+
testProcess.childProcess.stderr.on('data', data => {
19+
stderr += data.toString();
20+
});
21+
22+
await testProcess;
23+
console.log('Success: ' + name);
24+
} catch (e) {
25+
console.error('Failure: ' + name);
26+
console.log(stdio);
27+
console.error(stderr);
28+
process.exit(1);
29+
}
30+
})();

0 commit comments

Comments
 (0)