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:
Paul Gschwendtner 2025-01-21 13:13:23 +00:00
parent 397ea00552
commit e8a97aa465
3 changed files with 5 additions and 12 deletions

View File

@ -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,

View File

@ -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');

View File

@ -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