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.
75 lines
2.6 KiB
JavaScript
Executable File
75 lines
2.6 KiB
JavaScript
Executable File
"use strict";
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = default_1;
|
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
const schema_1 = require("./schema");
|
|
const AI_TOOLS = {
|
|
agents: {
|
|
rulesName: 'AGENTS.md',
|
|
directory: '.',
|
|
},
|
|
gemini: {
|
|
rulesName: 'GEMINI.md',
|
|
directory: '.gemini',
|
|
},
|
|
claude: {
|
|
rulesName: 'CLAUDE.md',
|
|
directory: '.claude',
|
|
},
|
|
copilot: {
|
|
rulesName: 'copilot-instructions.md',
|
|
directory: '.github',
|
|
},
|
|
windsurf: {
|
|
rulesName: 'guidelines.md',
|
|
directory: '.windsurf/rules',
|
|
},
|
|
jetbrains: {
|
|
rulesName: 'guidelines.md',
|
|
directory: '.junie',
|
|
},
|
|
// Cursor file has a front matter section.
|
|
cursor: {
|
|
rulesName: 'cursor.mdc',
|
|
directory: '.cursor/rules',
|
|
frontmatter: `---\ncontext: true\npriority: high\nscope: project\n---`,
|
|
},
|
|
};
|
|
function default_1({ tool }) {
|
|
return (tree, context) => {
|
|
if (!tool) {
|
|
return (0, schematics_1.noop)();
|
|
}
|
|
const rules = tool
|
|
.filter((tool) => tool !== schema_1.Tool.None)
|
|
.map((selectedTool) => {
|
|
const { rulesName, directory, frontmatter } = AI_TOOLS[selectedTool];
|
|
const path = `${directory}/${rulesName}`;
|
|
if (tree.exists(path)) {
|
|
const toolName = schematics_1.strings.classify(selectedTool);
|
|
context.logger.warn(`Skipping configuration file for '${toolName}' at '${path}' because it already exists.\n` +
|
|
'This is to prevent overwriting a potentially customized file. ' +
|
|
'If you want to regenerate it with Angular recommended defaults, please delete the existing file and re-run the command.\n' +
|
|
'You can review the latest recommendations at https://angular.dev/ai/develop-with-ai.');
|
|
return (0, schematics_1.noop)();
|
|
}
|
|
return (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
|
(0, schematics_1.applyTemplates)({
|
|
...schematics_1.strings,
|
|
rulesName,
|
|
frontmatter,
|
|
}),
|
|
(0, schematics_1.move)(directory),
|
|
]));
|
|
});
|
|
return (0, schematics_1.chain)(rules);
|
|
};
|
|
}
|
|
//# sourceMappingURL=index.js.map
|