jasmine-focused-test-detector 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="1ddebb7f-fbe9-4034-9b30-bc3b3eab913e" name="Changes" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="ProjectColorInfo">{
14
+ &quot;associatedIndex&quot;: 8
15
+ }</component>
16
+ <component name="ProjectId" id="37YoH0HhS4rhooqou3rZ5cR93uI" />
17
+ <component name="ProjectViewState">
18
+ <option name="hideEmptyMiddlePackages" value="true" />
19
+ <option name="showLibraryContents" value="true" />
20
+ <option name="showMembers" value="true" />
21
+ </component>
22
+ <component name="PropertiesComponent">{
23
+ &quot;keyToString&quot;: {
24
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
25
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/Pouya/Desktop/focus test detector&quot;,
26
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
27
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
28
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
29
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
30
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
31
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
32
+ }
33
+ }</component>
34
+ <component name="SharedIndexes">
35
+ <attachedChunks>
36
+ <set>
37
+ <option value="bundled-js-predefined-1d06a55b98c1-0b3e54e931b4-JavaScript-WS-241.19416.2" />
38
+ </set>
39
+ </attachedChunks>
40
+ </component>
41
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
42
+ <component name="TaskManager">
43
+ <task active="true" id="Default" summary="Default task">
44
+ <changelist id="1ddebb7f-fbe9-4034-9b30-bc3b3eab913e" name="Changes" comment="" />
45
+ <created>1767089273794</created>
46
+ <option name="number" value="Default" />
47
+ <option name="presentableId" value="Default" />
48
+ <updated>1767089273794</updated>
49
+ <workItem from="1767089274873" duration="3921000" />
50
+ </task>
51
+ <servers />
52
+ </component>
53
+ <component name="TypeScriptGeneratedFilesManager">
54
+ <option name="version" value="3" />
55
+ </component>
56
+ </project>
package/index.js CHANGED
@@ -1,14 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'fs';
3
- import path from 'path';
4
- import { fileURLToPath } from 'url';
3
+ import {globby} from 'globby';
4
+ import {hideBin} from 'yargs/helpers';
5
+ import yargs from 'yargs/yargs';
5
6
  import { parse } from '@typescript-eslint/parser';
6
- import globby from 'globby';
7
- import yargs from 'yargs';
8
- import { hideBin } from 'yargs/helpers';
9
-
10
- const __filename = fileURLToPath(import.meta.url);
11
- const __dirname = path.dirname(__filename);
12
7
 
13
8
  const argv = yargs(hideBin(process.argv))
14
9
  .option('files', {
@@ -40,6 +35,7 @@ const filePatterns = argv.files.split(',').map(f => f.trim());
40
35
  (node.callee.name === 'fit' || node.callee.name === 'fdescribe')
41
36
  ) {
42
37
  found = true;
38
+ console.log(filePath)
43
39
  if (!focusedFiles.includes(filePath)) focusedFiles.push(filePath);
44
40
  }
45
41
  for (const key in node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jasmine-focused-test-detector",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Detect focused tests (fit/fdescribe) in Jasmine test files",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/focus test detector.iml" filepath="$PROJECT_DIR$/.idea/focus test detector.iml" />
6
- </modules>
7
- </component>
8
- </project>