mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +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
|
||||
*/
|
||||
|
||||
import { jobs } from '../../src';
|
||||
import { JsonValue, schema } from '@angular-devkit/core';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { jobs } from '../../src';
|
||||
|
||||
export class NodeModuleJobRegistry<
|
||||
MinimumArgumentValueT extends JsonValue = JsonValue,
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
import * as path from 'path';
|
||||
import { lastValueFrom } from 'rxjs';
|
||||
import { NodeModuleJobRegistry } from './job-registry';
|
||||
import { jobs } from '../../src';
|
||||
import { NodeModuleJobRegistry } from './job-registry';
|
||||
|
||||
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
|
||||
# found in the LICENSE file at https://angular.dev/license
|
||||
|
||||
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
||||
load("//tools:interop.bzl", "ts_project")
|
||||
load("//tools:defaults2.bzl", "jasmine_test", "ts_project")
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
@ -28,8 +27,6 @@ ts_project(
|
||||
],
|
||||
)
|
||||
|
||||
# @external_begin
|
||||
|
||||
ts_project(
|
||||
name = "node_test_lib",
|
||||
testonly = True,
|
||||
@ -49,11 +46,7 @@ ts_project(
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
jasmine_test(
|
||||
name = "node_test",
|
||||
srcs = [":node_test_lib"],
|
||||
deps = [
|
||||
"@npm//chokidar",
|
||||
],
|
||||
data = [":node_test_lib_rjs"],
|
||||
)
|
||||
# @external_end
|
||||
|
Loading…
x
Reference in New Issue
Block a user