chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:38:36 +08:00
commit 8e2a6eb840
10194 changed files with 1593658 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
describe('@nx/angular/tailwind deprecation warning', () => {
let warnSpy: jest.SpyInstance;
beforeEach(() => {
jest.resetModules();
warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});
});
afterEach(() => {
warnSpy.mockRestore();
});
it('warns once per process when createGlobPatternsForDependencies is invoked', () => {
const { createGlobPatternsForDependencies } = require('./tailwind');
createGlobPatternsForDependencies('/does/not/exist');
createGlobPatternsForDependencies('/does/not/exist');
const deprecationWarnings = warnSpy.mock.calls.filter(
([msg]) =>
typeof msg === 'string' &&
msg.includes('"@nx/angular/tailwind" is deprecated')
);
expect(deprecationWarnings).toHaveLength(1);
});
});