Skip to content

Commit ed06278

Browse files
enisdenjoardatan
authored andcommitted
logs to stderr only relevent to compose
1 parent d10600c commit ed06278

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
import { createTenv } from '@e2e/tenv';
22

3-
const { serve, compose, fs } = createTenv(__dirname);
4-
5-
it('should write serve logs to stderr', async () => {
6-
await using serveInstance = await serve({
7-
supergraph: await fs.tempfile('supergraph.graphql', 'type Query { hello: String }'),
8-
});
9-
// stdout from serve because it uses the default logger that uses console.log
10-
expect(serveInstance.getStd('out')).toContain('Serving local supergraph from');
11-
});
3+
const { compose } = createTenv(__dirname);
124

135
it('should write compose output to stdout and logs to stderr', async () => {
146
const { getStd } = await compose();
7+
expect(getStd('out')).toContain('type Query @join__type(graph: HELLOWORLD)');
158
expect(getStd('err')).toContain('Done!');
169
});

0 commit comments

Comments
 (0)