File: exclude-tests.patch

package info (click to toggle)
node-yarnpkg 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,752 kB
  • sloc: javascript: 38,953; ansic: 26,035; cpp: 7,247; sh: 2,829; makefile: 724; perl: 493
file content (46 lines) | stat: -rw-r--r-- 1,707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Disabled some tests because:
1. Test dependency wasn't available (comment-json)
2. Some binaries which a test needed were excluded
3. Some tests only fail in test environment
--- a/packages/yarnpkg-core/tests/miscUtils.test.ts
+++ b/packages/yarnpkg-core/tests/miscUtils.test.ts
@@ -1,4 +1,4 @@
-import CJSON          from 'comment-json';
+// import CJSON          from 'comment-json';
 
 import * as miscUtils from '../sources/miscUtils';
 
@@ -117,7 +117,7 @@
     });
   });
 
-  describe(`mergeIntoTarget`, () => {
+  describe.skip(`mergeIntoTarget`, () => {
     it(`should preserve comments when the target is an object created by comment-json`, () => {
       const a = CJSON.parse(`{
         // n
--- a/packages/yarnpkg-core/tests/scriptUtils.test.ts
+++ b/packages/yarnpkg-core/tests/scriptUtils.test.ts
@@ -38,9 +38,9 @@
 
   describe(`isNodeScript`, () => {
     const binariesFolder = ppath.join(npath.toPortablePath(__dirname), `../fixtures/binaries`);
-    const binaryNames = xfs.readdirSync(binariesFolder);
+    // const binaryNames = xfs.readdirSync(binariesFolder);
 
-    it.each(binaryNames)(`should detect %s as a binary`, name => {
+    it.skip.each(/* binaryNames */)(`should detect %s as a binary`, name => {
       expect(scriptUtils.isNodeScript(ppath.join(binariesFolder, name)));
     });
 
--- a/packages/plugin-compat/tests/resolve.test.ts
+++ b/packages/plugin-compat/tests/resolve.test.ts
@@ -3,7 +3,7 @@
 
 const FILENAME = path.basename(__filename);
 
-describe(`ResolvePatch`, () => {
+describe.skip(`ResolvePatch`, () => {
   it(`should not match a local file that matches the specifier`, () => {
     expect(() =>
       resolve.sync(FILENAME, {extensions: [`.ts`]}),