hooks-skipped.js 330 B

12345678910111213141516171819202122
  1. import test from '../..';
  2. test.before(() => {
  3. throw new Error('should not run');
  4. });
  5. test.after(() => {
  6. throw new Error('should not run');
  7. });
  8. test.beforeEach(() => {
  9. throw new Error('should not run');
  10. });
  11. test.afterEach(() => {
  12. throw new Error('should not run');
  13. });
  14. test.skip('some skipped test', t => {
  15. t.fail();
  16. });