From a564b40db95150915745b32ada991a38fa6bfece Mon Sep 17 00:00:00 2001 From: Gulacsy-Toth Date: Sat, 5 Oct 2019 17:09:27 +0200 Subject: [PATCH] remove tests and mocks from build --- build/__mocks__/mock-scss-preprocessor.js | 6 - build/__mocks__/mock-scss-preprocessor.js.map | 1 - .../mock-to-another-scss-preprocessor.js | 6 - .../mock-to-another-scss-preprocessor.js.map | 1 - build/__tests__/main.spec.js | 43 ---- build/__tests__/main.spec.js.map | 1 - build/__tests__/pre-processors.spec.js | 227 ------------------ build/__tests__/pre-processors.spec.js.map | 1 - package.json | 2 +- 9 files changed, 1 insertion(+), 287 deletions(-) delete mode 100644 build/__mocks__/mock-scss-preprocessor.js delete mode 100644 build/__mocks__/mock-scss-preprocessor.js.map delete mode 100644 build/__mocks__/mock-to-another-scss-preprocessor.js delete mode 100644 build/__mocks__/mock-to-another-scss-preprocessor.js.map delete mode 100644 build/__tests__/main.spec.js delete mode 100644 build/__tests__/main.spec.js.map delete mode 100644 build/__tests__/pre-processors.spec.js delete mode 100644 build/__tests__/pre-processors.spec.js.map diff --git a/build/__mocks__/mock-scss-preprocessor.js b/build/__mocks__/mock-scss-preprocessor.js deleted file mode 100644 index db9e34d..0000000 --- a/build/__mocks__/mock-scss-preprocessor.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function mockScssPreprocessor() { } -exports.default = mockScssPreprocessor; -; -//# sourceMappingURL=mock-scss-preprocessor.js.map \ No newline at end of file diff --git a/build/__mocks__/mock-scss-preprocessor.js.map b/build/__mocks__/mock-scss-preprocessor.js.map deleted file mode 100644 index 35781f0..0000000 --- a/build/__mocks__/mock-scss-preprocessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mock-scss-preprocessor.js","sourceRoot":"","sources":["../../src/__mocks__/mock-scss-preprocessor.ts"],"names":[],"mappings":";;AAAA,SAAwB,oBAAoB,KAAI,CAAC;AAAjD,uCAAiD;AAAA,CAAC"} \ No newline at end of file diff --git a/build/__mocks__/mock-to-another-scss-preprocessor.js b/build/__mocks__/mock-to-another-scss-preprocessor.js deleted file mode 100644 index 2d98d61..0000000 --- a/build/__mocks__/mock-to-another-scss-preprocessor.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function mockScssPreprocessor() { } -exports.default = mockScssPreprocessor; -; -//# sourceMappingURL=mock-to-another-scss-preprocessor.js.map \ No newline at end of file diff --git a/build/__mocks__/mock-to-another-scss-preprocessor.js.map b/build/__mocks__/mock-to-another-scss-preprocessor.js.map deleted file mode 100644 index 4ee9a19..0000000 --- a/build/__mocks__/mock-to-another-scss-preprocessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mock-to-another-scss-preprocessor.js","sourceRoot":"","sources":["../../src/__mocks__/mock-to-another-scss-preprocessor.ts"],"names":[],"mappings":";;AAAA,SAAwB,oBAAoB,KAAI,CAAC;AAAjD,uCAAiD;AAAA,CAAC"} \ No newline at end of file diff --git a/build/__tests__/main.spec.js b/build/__tests__/main.spec.js deleted file mode 100644 index ac59fcc..0000000 --- a/build/__tests__/main.spec.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const main_1 = require("../main"); -const compiler_1 = require("@riotjs/compiler"); -const babel_jest_1 = __importDefault(require("babel-jest")); -const hello = ` - -

{ props.name }

-
-`; -describe('riot-jest-transformer', function () { - describe('process', () => { - const filename = 'fakeFile'; - const config = { - transform: [ - ['pattern', 'any transformer'] - ], - rootDir: '' - }; - const options = { instrument: false }; - const result = 'mockResult'; - let babelJestProcessMock; - beforeEach(() => { - babelJestProcessMock = jest.spyOn(babel_jest_1.default, 'process') - .mockImplementation(() => result); - }); - it('should be a function', function () { - expect(typeof main_1.process).toBe('function'); - }); - it('returns code attribute of transformed tag', () => { - const res = main_1.process(hello, filename, config, options); - expect(res).toBe(result); - expect(babelJestProcessMock.mock.calls[0][0].name).toEqual(compiler_1.compile(hello).code.name); - expect(babelJestProcessMock.mock.calls[0][1]).toBe('fakeFile'); - expect(babelJestProcessMock.mock.calls[0][2]).toBe(config); - expect(babelJestProcessMock.mock.calls[0][3]).toBe(options); - }); - }); -}); -//# sourceMappingURL=main.spec.js.map \ No newline at end of file diff --git a/build/__tests__/main.spec.js.map b/build/__tests__/main.spec.js.map deleted file mode 100644 index bb51b68..0000000 --- a/build/__tests__/main.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.spec.js","sourceRoot":"","sources":["../../src/__tests__/main.spec.ts"],"names":[],"mappings":";;;;;AAAA,kCAAkC;AAClC,+CAA2C;AAC3C,4DAAmC;AAInC,MAAM,KAAK,GAAG;;;;CAIb,CAAC;AAEF,QAAQ,CAAC,uBAAuB,EAAE;IAChC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACvB,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,MAAM,GAAsB;YAChC,SAAS,EAAE;gBACT,CAAC,SAAS,EAAE,iBAAiB,CAAC;aAC/B;YACD,OAAO,EAAE,EAAE;SACZ,CAAC;QACF,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,YAAY,CAAC;QAC5B,IAAI,oBAA+B,CAAC;QAEpC,UAAU,CAAC,GAAG,EAAE;YACd,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAS,EAAE,SAAS,CAAC;iBACpD,kBAAkB,CAAC,GAAG,EAAE,CAAC,MAAM,CAAc,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,sBAAsB,EAAE;YACvB,MAAM,CAAC,OAAO,cAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;YACnD,MAAM,GAAG,GAAG,cAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YACtD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzB,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,kBAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrF,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC/D,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC3D,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/build/__tests__/pre-processors.spec.js b/build/__tests__/pre-processors.spec.js deleted file mode 100644 index 72c49c3..0000000 --- a/build/__tests__/pre-processors.spec.js +++ /dev/null @@ -1,227 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const pre_processors_1 = require("../pre-processors"); -const mock_scss_preprocessor_1 = __importDefault(require("../__mocks__/mock-scss-preprocessor")); -const compiler_1 = require("@riotjs/compiler"); -describe('Pre-processors', () => { - describe('getRegistrationOptions', () => { - it('should be a function', () => { - expect(typeof pre_processors_1.getRegistrationOptions).toBe('function'); - }); - it('should return null if no options object \ - in riot-jest-transformer config', () => { - const config = { - transform: [ - ['filePattern1', 'modulePath'], - ['riot-tag-pattern', 'some/riot-jest-transformer/path'] - ], - rootDir: '' - }; - expect(pre_processors_1.getRegistrationOptions(config)).toBe(null); - }); - it('should return null if there is no registrations \ - in options object', () => { - const config = { - transform: [ - ['filePattern1', 'modulePath'], - ['riot-tag-pattern', 'some/riot-jest-transformer/path', - // @ts-ignore: testing inappropriate options - { foo: 'bar' } - ], - ], - rootDir: '' - }; - expect(pre_processors_1.getRegistrationOptions(config)).toBe(null); - }); - it('should return registrationOptions', () => { - const regOpts = [{ - type: 'css', - name: 'anything', - preprocessorModulePath: '' - }]; - const config = { - transform: [ - ['filePattern1', 'modulePath'], - ['riot-tag-pattern', 'some/riot-jest-transformer/path', - { registrations: regOpts } - ] - ], - rootDir: '' - }; - expect(pre_processors_1.getRegistrationOptions(config)).toBe(regOpts); - }); - }); - describe('getCacheOption', () => { - it('should return true if clearCache is not defined', () => { - const config = { - transform: [ - ['filePattern1', 'modulePath'], - ['riot-tag-pattern', 'some/riot-jest-transformer/path', - { registrations: [{ - type: 'css', - name: 'scss', - preprocessorModulePath: "riot-scss-preprocessor" - }] - } - ] - ], - rootDir: '' - }; - expect(pre_processors_1.getCacheOption(config)).toBe(false); - }); - it('should return true', () => { - const config = { - transform: [ - ['filePattern1', 'modulePath'], - ['riot-tag-pattern', 'some/riot-jest-transformer/path', - { registrations: [{ - type: 'css', - name: 'scss', - preprocessorModulePath: "riot-scss-preprocessor" - }], - clearCache: true - } - ] - ], - rootDir: '' - }; - expect(pre_processors_1.getCacheOption(config)).toBe(true); - }); - }); - describe('tryRegistrations', () => { - const jestRootDir = ''; - describe('Options validation', () => { - it('should throw error if registration options are \ - not wrapped in an array', () => { - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations()).toThrow(); - }); - it('should throw error if registration options \ - are not objects', () => { - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations([[{}]])).toThrow(); - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations([{}, 'something else'])).toThrow(); - }); - it('should throw error if registration options \ - do not have type: "template" | "css" | "javascript"', () => { - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations([{}])).toThrow(); - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations([{ foo: 'bar' }])).toThrow(); - // @ts-ignore: testing wrong arguments - expect(() => pre_processors_1.tryRegistrations([{ type: 'foo' }])).toThrow(); - }); - it('should throw error if registration options \ - do not have name (string)', () => { - expect(() => - // @ts-ignore: testing wrong arguments - pre_processors_1.tryRegistrations([{ type: 'template' }])) - .toThrow(); - expect(() => - // @ts-ignore: testing wrong arguments - pre_processors_1.tryRegistrations([{ type: 'template', name: {} }])) - .toThrow(); - }); - it('should throw error if registration options \ - do not have preprocessorModulePath as string', () => { - expect(() => - // @ts-ignore: testing wrong arguments - pre_processors_1.tryRegistrations([{ - type: 'template', - name: 'foo' - }], jestRootDir)) - .toThrow(); - expect(() => - // @ts-ignore: testing wrong arguments - pre_processors_1.tryRegistrations([{ - type: 'template', - name: 'foo', - // @ts-ignore: testing wrong arguments - preprocessorModulePath: {} - }], jestRootDir, true)) - .toThrow(); - expect(() => pre_processors_1.tryRegistrations([{ - type: 'template', - name: 'foo', - preprocessorModulePath: 'mock-scss-preprocessor' - }], jestRootDir, true)) - .not.toThrow(); - }); - }); - describe('Try registration', () => { - const jestRootDir = ''; - beforeEach(() => { - compiler_1.registerPreprocessor.mockReset(); - }); - it('should call registerPreprocessor for all registrations', () => { - const options = [{ - type: 'css', - name: 'foo', - preprocessorModulePath: 'mock-scss-preprocessor' - }]; - pre_processors_1.tryRegistrations(options, jestRootDir, true); - expect(compiler_1.registerPreprocessor).toBeCalledTimes(1); - expect(compiler_1.registerPreprocessor) - .toHaveBeenCalledWith(options[0].type, options[0].name, { default: mock_scss_preprocessor_1.default }); - }); - }); - describe('registerPreProcessors', () => { - beforeEach(() => { - compiler_1.registerPreprocessor.mockReset(); - }); - it('should get options and call registerPreprocessor', () => { - const options = [{ - type: 'template', - name: 'foo', - preprocessorModulePath: 'mock-scss-preprocessor' - }]; - const config = { - transform: [ - ['filePattern1', 'modulePath'], - [ - 'riot-tag-pattern', - 'riot-jest-transformer', - { registrations: options, clearCache: true } - ] - ], - rootDir: '' - }; - pre_processors_1.registerPreProcessors(config); - expect(compiler_1.registerPreprocessor).toBeCalledTimes(1); - expect(compiler_1.registerPreprocessor) - .toHaveBeenCalledWith(options[0].type, options[0].name, { default: mock_scss_preprocessor_1.default }); - }); - it('should call registerPreprocessor only once for the same type', () => { - const options = [{ - type: 'css', - name: 'foo', - preprocessorModulePath: 'mock-scss-preprocessor' - }, { - type: 'css', - name: 'bar', - preprocessorModulePath: 'mock-to-another-scss-preprocessor' - }]; - const config = { - transform: [ - ['filePattern1', 'modulePath'], - [ - 'riot-tag-pattern', - 'riot-jest-transformer', - { registrations: options, clearCache: true } - ], - ], - rootDir: '' - }; - pre_processors_1.registerPreProcessors(config); - expect(compiler_1.registerPreprocessor).toBeCalledTimes(1); - expect(compiler_1.registerPreprocessor) - .toHaveBeenCalledWith(options[0].type, options[0].name, { default: mock_scss_preprocessor_1.default }); - }); - }); - }); -}); -//# sourceMappingURL=pre-processors.spec.js.map \ No newline at end of file diff --git a/build/__tests__/pre-processors.spec.js.map b/build/__tests__/pre-processors.spec.js.map deleted file mode 100644 index daaba67..0000000 --- a/build/__tests__/pre-processors.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pre-processors.spec.js","sourceRoot":"","sources":["../../src/__tests__/pre-processors.spec.ts"],"names":[],"mappings":";;;;;AAAA,sDAK2B;AAC3B,iGAAuE;AACvE,+CAAwD;AAGxD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;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AAC,CAAC;YAEH,EAAE,CAAC,8DAA8D,EAAE,GAAG,EAAE;gBACtE,MAAM,OAAO,GAAG,CAAC;wBACf,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,KAAK;wBACX,sBAAsB,EAAE,wBAAwB;qBACjD,EAAE;wBACD,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,KAAK;wBACX,sBAAsB,EAAE,mCAAmC;qBAC5D,CAAC,CAAC;gBAEH,MAAM,MAAM,GAAsB;oBAChC,SAAS,EAAE;wBACT,CAAC,cAAc,EAAE,YAAY,CAAC;wBAC9B;4BACE,kBAAkB;4BAClB,uBAAuB;4BACvB,EAAE,aAAa,EAAE,OAA8B,EAAE,UAAU,EAAE,IAAI,EAAE;yBACpE;qBACF;oBACD,OAAO,EAAE,EAAE;iBACZ,CAAC;gBAEF,sCAAqB,CAAC,MAAM,CAAC,CAAC;gBAC9B,MAAM,CAAC,+BAAoB,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;gBAChD,MAAM,CAAC,+BAAoB,CAAC;qBACzB,oBAAoB,CACnB,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EACf,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EACf,EAAE,OAAO,EAAE,gCAAoB,EAAE,CAClC,CAAC;YACN,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 9b6cf7b..2e5e8e4 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Jest transformer for testing riot tags", "main": "build/main.js", "scripts": { - "build": " npm run clearBuild && npm run build-ts", + "build": " npm run clearBuild && npm run build-ts && npm run cleanBuild", "build-ts": "tsc", "watch": "tsc -w", "test": "jest --config jest.config.js --no-cache",