mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 12:37:00 +00:00
Angular Integration (#2871)
* feature(integration): initial Angular framework implementation * Package cleanup * Actually add the components this time * fix rendering bug * Add documentation * dependency fixes * add broken example * Make locales ignore angular * dependency updates * Update package-lock.json * Fix broken example * Make example consistent with docs * angular: Update styling advice * angular: Build system stuff * angular: Escape dependency hell * angular: Add dashboard-modal component * angular: Update package.json/prepare for release * angular: Fix styling bugs * add Angular dependencies * Update README.md * lint fixes — those deps are in root * Update README.md Co-authored-by: Adam Medford <adammedford@gmail.com> Co-authored-by: Artur Paikin <artur@arturpaikin.com>
This commit is contained in:
parent
285a13670d
commit
8f4cc89a9e
84 changed files with 36239 additions and 1338 deletions
25
examples/angular-example/src/test.ts
Normal file
25
examples/angular-example/src/test.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
import 'zone.js/dist/zone-testing';
|
||||
import { getTestBed } from '@angular/core/testing';
|
||||
import {
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
|
||||
declare const require: {
|
||||
context(path: string, deep?: boolean, filter?: RegExp): {
|
||||
keys(): string[];
|
||||
<T>(id: string): T;
|
||||
};
|
||||
};
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting()
|
||||
);
|
||||
// Then we find all the tests.
|
||||
const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
Loading…
Add table
Add a link
Reference in a new issue