mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 14:02:43 +08:00
build: migrate @angular-devkit/core/node
tests to rules_js
Migrates the sub-entry point tests for core/node to `rules_js`.
This commit is contained in:
parent
397ea00552
commit
e8a97aa465
@ -6,9 +6,9 @@
|
|||||||
* found in the LICENSE file at https://angular.dev/license
|
* found in the LICENSE file at https://angular.dev/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { jobs } from '../../src';
|
|
||||||
import { JsonValue, schema } from '@angular-devkit/core';
|
import { JsonValue, schema } from '@angular-devkit/core';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
|
import { jobs } from '../../src';
|
||||||
|
|
||||||
export class NodeModuleJobRegistry<
|
export class NodeModuleJobRegistry<
|
||||||
MinimumArgumentValueT extends JsonValue = JsonValue,
|
MinimumArgumentValueT extends JsonValue = JsonValue,
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { lastValueFrom } from 'rxjs';
|
import { lastValueFrom } from 'rxjs';
|
||||||
import { NodeModuleJobRegistry } from './job-registry';
|
|
||||||
import { jobs } from '../../src';
|
import { jobs } from '../../src';
|
||||||
|
import { NodeModuleJobRegistry } from './job-registry';
|
||||||
|
|
||||||
const root = path.join(__dirname, '../test/jobs');
|
const root = path.join(__dirname, '../test/jobs');
|
||||||
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
# Use of this source code is governed by an MIT-style license that can be
|
# 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
|
# found in the LICENSE file at https://angular.dev/license
|
||||||
|
|
||||||
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
load("//tools:defaults2.bzl", "jasmine_test", "ts_project")
|
||||||
load("//tools:interop.bzl", "ts_project")
|
|
||||||
|
|
||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
@ -28,8 +27,6 @@ ts_project(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# @external_begin
|
|
||||||
|
|
||||||
ts_project(
|
ts_project(
|
||||||
name = "node_test_lib",
|
name = "node_test_lib",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
@ -49,11 +46,7 @@ ts_project(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
jasmine_node_test(
|
jasmine_test(
|
||||||
name = "node_test",
|
name = "node_test",
|
||||||
srcs = [":node_test_lib"],
|
data = [":node_test_lib_rjs"],
|
||||||
deps = [
|
|
||||||
"@npm//chokidar",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
# @external_end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user