`core-js` is a CJS package which cannot be used directly in the browser. `core-js-bundle` is the bundled version of the package which can be used in directly in the browser. PR Close #41739
		
			
				
	
	
		
			35 lines
		
	
	
		
			943 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			943 B
		
	
	
	
		
			Python
		
	
	
	
	
	
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library")
 | 
						|
 | 
						|
ts_library(
 | 
						|
    name = "test_lib",
 | 
						|
    testonly = True,
 | 
						|
    srcs = glob(["**/*.ts"]),
 | 
						|
    # Visible to //:saucelabs_unit_tests_poc target
 | 
						|
    visibility = ["//:__pkg__"],
 | 
						|
    deps = [
 | 
						|
        "//packages/common",
 | 
						|
        "//packages/common/http",
 | 
						|
        "//packages/core",
 | 
						|
        "//packages/core/testing",
 | 
						|
        "//packages/misc/angular-in-memory-web-api",
 | 
						|
        "@npm//@types/jasmine-ajax",
 | 
						|
        "@npm//jasmine-ajax",
 | 
						|
        "@npm//rxjs",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
karma_web_test_suite(
 | 
						|
    name = "test_web",
 | 
						|
    # do not sort
 | 
						|
    bootstrap = [
 | 
						|
        "@npm//:node_modules/core-js-bundle/index.js",
 | 
						|
        "@npm//:node_modules/reflect-metadata/Reflect.js",
 | 
						|
        "@npm//:node_modules/jasmine-ajax/lib/mock-ajax.js",
 | 
						|
        "//packages/zone.js/bundles:zone.umd.js",
 | 
						|
        "//packages/zone.js/bundles:zone-testing.umd.js",
 | 
						|
    ],
 | 
						|
    deps = [
 | 
						|
        ":test_lib",
 | 
						|
    ],
 | 
						|
)
 |