Skip to content

Commit f45a732

Browse files
committed
test: add failing tests to see error reporting
1 parent 44cb5f9 commit f45a732

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
with:
4444
filters: ./.github/path-filters.yml
4545

46-
- if: ${{ steps.filter.outputs.any-workspace == 'true' }}
47-
uses: ./.github/actions/install-dependencies
46+
# - if: ${{ steps.filter.outputs.any-workspace == 'true' }}
47+
# uses: ./.github/actions/install-dependencies
4848

49-
- name: Build packages
50-
if: ${{ steps.filter.outputs.any-workspace == 'true' }}
51-
run: npm run build
49+
# - name: Build packages
50+
# if: ${{ steps.filter.outputs.any-workspace == 'true' }}
51+
# run: npm run build
5252

5353
- name: Store build artifacts
5454
if: ${{ steps.filter.outputs.any-workspace == 'true' }}

packages/scratch-gui/test/unit/util/audio-context.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import SharedAudioContext from '../../../src/lib/audio/shared-audio-context';
99
describe('Shared Audio Context', () => {
1010
const audioContext = new AudioContext();
1111

12+
test('intentionally fail to test error reporting', () => {
13+
expect(0).toBe(1);
14+
});
15+
1216
test('returns empty object without user gesture', () => {
1317
const sharedAudioContext = new SharedAudioContext();
1418
expect(sharedAudioContext).toMatchObject({});

packages/scratch-render/test/unit/ColorConversionTests.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const colorsAlmostEqual = (t, found, wanted, message, extra) => {
2121
return t.pass(message);
2222
};
2323

24+
test('intentionally fail to test error reporting', t => {
25+
t.equal(0, 1, 'This test is intentionally failing');
26+
t.end();
27+
});
28+
2429
test('RGB to HSV', t => {
2530
const dst = [0, 0, 0];
2631
colorsAlmostEqual(t, rgbToHsv([255, 255, 255], dst), [0, 0, 1], 'white');

packages/scratch-svg-renderer/test/bitmapAdapter_getResized.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
const test = require('tap').test;
44
const BitmapAdapter = require('../src/bitmap-adapter');
55

6+
test('intentionally fail to test error reporting', t => {
7+
t.equal(0, 1, 'This test is intentionally failing');
8+
t.end();
9+
});
10+
611
test('zero', t => {
712
const bitmapAdapter = new BitmapAdapter();
813
const size = bitmapAdapter.getResizedWidthHeight(0, 0);

packages/scratch-vm/test/unit/blocks_control.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ const Control = require('../../src/blocks/scratch3_control');
33
const Runtime = require('../../src/engine/runtime');
44
const BlockUtility = require('../../src/engine/block-utility');
55

6+
test('intentionally fail to test error reporting', t => {
7+
t.equal(0, 1, 'This test is intentionally failing');
8+
t.end();
9+
});
10+
611
test('getPrimitives', t => {
712
const rt = new Runtime();
813
const c = new Control(rt);

0 commit comments

Comments
 (0)