60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
73 lines
1.7 KiB
Markdown
73 lines
1.7 KiB
Markdown
# global-dirs
|
|
|
|
> Get the directory of globally installed packages and binaries
|
|
|
|
Uses the same resolution logic as `npm` and `yarn`.
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install global-dirs
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const globalDirectories = require('global-dirs');
|
|
|
|
console.log(globalDirectories.npm.prefix);
|
|
//=> '/usr/local'
|
|
|
|
console.log(globalDirectories.npm.packages);
|
|
//=> '/usr/local/lib/node_modules'
|
|
|
|
console.log(globalDirectories.npm.binaries);
|
|
//=> '/usr/local/bin'
|
|
|
|
console.log(globalDirectories.yarn.packages);
|
|
//=> '/Users/sindresorhus/.config/yarn/global/node_modules'
|
|
```
|
|
|
|
## API
|
|
|
|
### globalDirectories
|
|
|
|
#### npm
|
|
#### yarn
|
|
|
|
##### packages
|
|
|
|
Directory with globally installed packages.
|
|
|
|
Equivalent to `npm root --global`.
|
|
|
|
##### binaries
|
|
|
|
Directory with globally installed binaries.
|
|
|
|
Equivalent to `npm bin --global`.
|
|
|
|
##### prefix
|
|
|
|
Directory with directories for packages and binaries. You probably want either of the above.
|
|
|
|
Equivalent to `npm prefix --global`.
|
|
|
|
## Related
|
|
|
|
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
|
|
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
|
|
- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
<b>
|
|
<a href="https://tidelift.com/subscription/pkg/npm-global-dirs?utm_source=npm-global-dirs&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
</b>
|
|
<br>
|
|
<sub>
|
|
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
</sub>
|
|
</div>
|