My Favorite Unit Test

I use this one to find out if the test environment is set up correctly.

I use this one to find out if the test environment is set up correctly:

describe('the universe', () => {
  it('should exist', () => {
    expect(true).toBe(true);
  });
});

It’s also a software engineers version of Descartes’ “Cogito ergo sum”: The test passed, therefore the universe must exist.


© 2024 Florian Klampfer

Powered by Hydejack v9.2.0