feat(core): Implement Protocol V2 with enhanced settings and lifecycle hooks
This commit is contained in:
23
test/tapbundle/test.simple-diff.ts
Normal file
23
test/tapbundle/test.simple-diff.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { tap, expect } from '../../ts_tapbundle/index.js';
|
||||
|
||||
tap.test('should show string diff', async () => {
|
||||
const expected = `line 1
|
||||
line 2
|
||||
line 3`;
|
||||
|
||||
const actual = `line 1
|
||||
line changed
|
||||
line 3`;
|
||||
|
||||
try {
|
||||
expect(actual).toEqual(expected);
|
||||
} catch (e) {
|
||||
// Expected to fail
|
||||
}
|
||||
});
|
||||
|
||||
tap.test('should pass', async () => {
|
||||
expect('hello').toEqual('hello');
|
||||
});
|
||||
|
||||
tap.start({ throwOnError: false });
|
||||
Reference in New Issue
Block a user