diff --git a/sample/34-using-esm-packages/test/app.e2e-spec.ts b/sample/34-using-esm-packages/test/app.e2e-spec.ts index 1a1dcf27c..7410918ed 100644 --- a/sample/34-using-esm-packages/test/app.e2e-spec.ts +++ b/sample/34-using-esm-packages/test/app.e2e-spec.ts @@ -19,11 +19,10 @@ describe('AppController (e2e)', () => { return request(app.getHttpServer()) .get('/') .expect(200) - .expect( - JSON.stringify({ - jsonString: - '{"json":{"big":"10"},"meta":{"values":{"big":["bigint"]}}}', - }), - ); + .expect((res) => { + const result = JSON.parse(res.body.jsonString); + expect(result.json.big).toBe('10'); + expect(result.meta.values.big).toEqual(['bigint']); + }); }); });