mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
parent
6530cdbeba
commit
f2b20c8eb8
@ -1,10 +1,10 @@
|
||||
name: CI
|
||||
name: Unit Test
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test
|
||||
name: Unit Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
15
packages/element-plus/__tests__/ssr.spec.ts
Normal file
15
packages/element-plus/__tests__/ssr.spec.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @jest-environment node
|
||||
*/
|
||||
|
||||
describe('SSR', () => {
|
||||
test('require', () => {
|
||||
try {
|
||||
process.env.VUE_ENV = 'server'
|
||||
require('../index')
|
||||
} catch (e) {
|
||||
throw Error(e)
|
||||
}
|
||||
expect('pass').toBe('pass')
|
||||
})
|
||||
})
|
@ -6,8 +6,6 @@
|
||||
# *utils, __mocks__ directives hooks locale theme*
|
||||
# which means the result will not contain folder name includes utils
|
||||
|
||||
yarn bootstrap
|
||||
|
||||
yarn clean:lib
|
||||
yarn build:esm-bundle
|
||||
tar --exclude=index.esm.js -zcvf ./es.gz ./lib
|
||||
|
Loading…
Reference in New Issue
Block a user