Skip to content

Commit 0e141c0

Browse files
authored
Ban xit and xdescribe (and suppress existing violations). (#725)
1 parent 2471497 commit 0e141c0

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

packages/firestore/test/integration/api/database.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ apiDescribe('Database', persistence => {
419419
// TODO(mikelehen): We need a way to create a query that will pass
420420
// client-side validation but fail remotely. May need to wait until we
421421
// have security rules support or something?
422-
xdescribe('Listens are rejected remotely:', () => {
422+
// tslint:disable-next-line:ban
423+
describe.skip('Listens are rejected remotely:', () => {
423424
const queryForRejection = query('foo');
424425

425426
it('will reject listens', () => {

packages/firestore/test/integration/api/smoke.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ apiDescribe('Smoke Test', persistence => {
141141

142142
// TODO (b/33691136): temporarily disable failed test
143143
// This broken because it requires a composite index on filter,sort
144-
xit('can query by field and use order by', () => {
144+
// tslint:disable-next-line:ban
145+
it.skip('can query by field and use order by', () => {
145146
const testDocs = {
146147
'1': { sort: 1, filter: true, key: '1' },
147148
'2': { sort: 2, filter: true, key: '2' },

packages/firestore/test/unit/remote/node/serializer.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ describe('Serializer', () => {
600600
describe('toDocumentMask', () => {
601601
addEqualityMatcher();
602602

603-
// TODO(b/34988481): Implement correct escaping.
604-
xit('converts a weird path', () => {
603+
// tslint:disable-next-line:ban TODO(b/34988481): Implement correct escaping
604+
it.skip('converts a weird path', () => {
605605
const expected: api.DocumentMask = { fieldPaths: ['foo.`bar.baz\\qux`'] };
606606
const mask = new FieldMask([
607607
FieldPath.fromServerFormat('foo.bar\\.baz\\\\qux')
@@ -614,8 +614,8 @@ describe('Serializer', () => {
614614
describe('fromDocumentMask', () => {
615615
addEqualityMatcher();
616616

617-
// TODO(b/34988481): Implement correct escaping.
618-
xit('converts a weird path', () => {
617+
// tslint:disable-next-line:ban TODO(b/34988481): Implement correct escaping
618+
it.skip('converts a weird path', () => {
619619
const expected = new FieldMask([
620620
FieldPath.fromServerFormat('foo.bar\\.baz\\\\qux')
621621
]);

packages/firestore/test/unit/util/sorted_map.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ describe('SortedMap Tests', () => {
287287
expect(map.size).to.equal(0);
288288
});
289289

290-
// A little perf test for convenient benchmarking.
291-
xit('Perf', () => {
290+
// tslint:disable-next-line:ban A little perf test for convenient benchmarking
291+
it.skip('Perf', () => {
292292
for (let j = 0; j < 5; j++) {
293293
let map = new SortedMap(primitiveComparator);
294294
const start = new Date().getTime();
@@ -305,7 +305,8 @@ describe('SortedMap Tests', () => {
305305
}
306306
});
307307

308-
xit('Perf: Insertion and removal with various # of items.', () => {
308+
// tslint:disable-next-line:ban A little perf test for convenient benchmarking
309+
it.skip('Perf: Insertion and removal with various # of items.', () => {
309310
const verifyTraversal = (map: SortedMap<number, number>, max: number) => {
310311
let next = 0;
311312
map.inorderTraversal((key: number, value: number) => {
@@ -348,7 +349,8 @@ describe('SortedMap Tests', () => {
348349
}
349350
});
350351

351-
xit('Perf: Comparison with {}: Insertion and removal with various # of items.', () => {
352+
// tslint:disable-next-line:ban A little perf test for convenient benchmarking
353+
it.skip('Perf: Comparison with {}: Insertion and removal with various # of items.', () => {
352354
const verifyTraversal = (tree: { [key: number]: number }, max: number) => {
353355
const keys: number[] = [];
354356
obj.forEach(tree, k => keys.push(Number(k)));

packages/firestore/tslint.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
{"name": ["it", "only"]},
88
{"name": ["describe", "skip"]},
99
{"name": ["describe", "only"]},
10+
{"name": ["xit"]},
11+
{"name": ["xdescribe"]},
1012
{"name": "parseInt", "message": "tsstyle#type-coercion"},
1113
{"name": "parseFloat", "message": "tsstyle#type-coercion"},
1214
{"name": "Array", "message": "tsstyle#array-constructor"}

0 commit comments

Comments
 (0)